Add more tilemap documentation

This commit is contained in:
octorock
2024-01-06 18:12:53 +01:00
parent 06dc158598
commit 560dfa45b1
39 changed files with 4306 additions and 4280 deletions
+3 -3
View File
@@ -8,7 +8,7 @@
@ custom libgcc implementation
.code 16
_08000ED8:
_divide_by_zero:
movs r0, #0
movs r1, #0
movs r2, #0
@@ -17,14 +17,14 @@ _08000ED8:
thumb_func_start __divsi3
__divsi3: @ 0x08000EE0
cmp r1, #0
beq _08000ED8
beq _divide_by_zero
svc #6
bx lr
thumb_func_start __modsi3
__modsi3: @ 0x08000EE8
cmp r1, #0
beq _08000ED8
beq _divide_by_zero
svc #6
adds r0, r1, #0
bx lr
+2 -2
View File
@@ -126,12 +126,12 @@
.2byte \paramB, \paramC, \paramD
.endm
.macro chest type, id, item, subnum, tileset_id
.macro chest type, id, item, subnum, tileSet_id
.2byte (\map_x) << 4
.2byte (\map_y) << 4
.2byte \pixel_width
.2byte \pixel_height
.2byte \tileset_id
.2byte \tileSet_id
.endm
.macro delayed_entity_raw subtype:req, paramA=0, paramB=0, layer=0, x=0, y=0, paramC=0, paramD=0, conditions=0
+4 -4
View File
@@ -16,12 +16,12 @@
.set BOTTOM_TILES, gMapBottom+0x7004
.set BOTTOM_ACTTILES, gMapBottom+0xb004
.macro room_header map_x, map_y, pixel_width, pixel_height, tileset_id
.macro room_header map_x, map_y, pixel_width, pixel_height, tileSet_id
.2byte (\map_x) << 4
.2byte (\map_y) << 4
.2byte \pixel_width
.2byte \pixel_height
.2byte \tileset_id
.2byte \tileSet_id
.endm
@@ -31,11 +31,11 @@
.4byte (\compressed << 0x1F) | (\size)
.endm
.macro tileset_tiles src_offset, dest, size, compressed, terminator=0
.macro tileSet_tiles src_offset, dest, size, compressed, terminator=0
map_data \src_offset, \dest, \size, \compressed, \terminator
.endm
.macro tileset_palette_set id, terminator=0
.macro tileSet_palette_set id, terminator=0
.4byte (!(\terminator) << 0x1F) | (\id)
.4byte 0x0
.4byte 0x0
+1 -1
View File
@@ -30,7 +30,7 @@ FindValueForKey: @ 0x08007DD6
adds r0, r3, #0 // move the found value into r0
pop {pc}
thumb_func_start FindEntryForKey // TODO rename
thumb_func_start FindEntryForKey
FindEntryForKey: @ 0x08007DE0
subs r1, #4
_08007DE2: