work on relocatability

Former-commit-id: 49d8567a0836922878460e17d0fb336115f8b9e9 [formerly b32d6bd6ecd96f25f01ca0919ee327b6ad3f8161] [formerly 3cec864ba4683729add2573c32a6d942a40b62db [formerly 7b7cedcad92ad364618f47e27b8b266b558d377b]]
Former-commit-id: 388ae3c7f7e8c2bde11a7921891a44f04c1ce653 [formerly 6537293b3f03b6639760e1d04a0dacab8b6bfab1]
Former-commit-id: 646971f1b5db692b971c48afc1fcc1c9854a91aa
This commit is contained in:
Larry 2017-08-22 11:47:55 -05:00
parent 2f68559dc1
commit 3ec3b1cf83
11 changed files with 46 additions and 23 deletions

View File

@ -1 +1 @@
8d71f11770202fe889e79c0246ef557b3174108a
08e5a53a45b82874451186b2e7c039f7ec10c379

View File

@ -1 +1 @@
b07c459d8cd2f095a27c98eac0b533963852ad4c
9c8a4a493ffea0a48f68f1f7e3b75d207b848c36

View File

@ -9,16 +9,7 @@
.include "macros.inc"
.include "src/header.s"
.include "src/entry.s"
.include "src/code.s"
.section .c_data, "a"
Compressedrodata:
# make a hole for when we compress .data segment
.space 0x11C00
Compressedrodata_end:
.include "src/rarezip.s"
.include "src/tlbcode.s"
.include "bin/romfiles.s"
.include "ramrom/ramrom.s"
@ -30,7 +21,6 @@ Compressedrodata_end:
# PADDING region BE6D10-C00000 [192F0]
.space 0x192F0, 0xFF
.include "src/data.s"
.include "src/bss.s"
.include "src/buffers.s"

39
macros.inc Normal file
View File

@ -0,0 +1,39 @@
# enum image_format, mappedto_2
.set rgba, 0
.set yuv, 1
.set ci, 2
.set ia, 3
.set i, 4
# ---------------------------------------------------------------------------
# enum image_bitdepth, mappedto_3
.set D_4BIT, 0
.set D_8BIT, 1
.set D_16BIT, 2
.set D_32BIT, 3
# ---------------------------------------------------------------------------
# enum cm_flags, mappedto_4
.set clamp, 1
.set mirror, 2
.macro texture_entry index, width, height, level, format, depth, flagsS, flagsT, pad
.word \index
.byte \width
.byte \height
.byte \level
.byte \format
.byte \depth
.byte \flagsS
.byte \flagsT
.byte \pad
.endm

View File

@ -1 +0,0 @@
c0d1ea1e646e6cee5351b9bec8f4d726e0b4e051

View File

@ -1,6 +0,0 @@
.section .bss
.global _BSS_START
_BSS_START:
.space 0x31080
_BSS_END:

1
src/bss.s.REMOVED.git-id Normal file
View File

@ -0,0 +1 @@
a6cb47f91f3414691c15db2f3d9ad3daf6af6457

View File

@ -1 +1 @@
ead7ebb1e8603eb353d270d246b30cf12102c1b5
134a75867308727d7af7643ca47502f788c4f371

View File

@ -1 +1 @@
3f1bc06d9797c1e84a40501bad179ae934d5c8cb
8f820b5e749cf8540f22b2ed5348b7f5815d3a6a

View File

@ -1 +1 @@
9327d6e033e8bc73d638e2daf83434f4c511f147
0b62f42271eb5d000d9071af811aa9b880f75451

View File

@ -1 +1 @@
c916ae32392a8245b21d1d75dd861fb84e100035
450938001b4dbffe0dc2c043827c553681106ad3