mirror of
https://github.com/zeldaret/tmc
synced 2026-07-01 12:18:54 -04:00
Add more tilemap documentation
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user