diff options
Diffstat (limited to 'definitions.gbasm')
-rw-r--r-- | definitions.gbasm | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/definitions.gbasm b/definitions.gbasm index fdefee8..88c1e5c 100644 --- a/definitions.gbasm +++ b/definitions.gbasm @@ -20,9 +20,26 @@ .DEFINE mem_bunny_y ($c007) .DEFINE mem_viewport_x ($c008) .DEFINE mem_viewport_y ($c009) +.DEFINE mem_rng_state_1 ($c00a) ; 2 bytes +.DEFINE mem_rng_state_2 ($c00b) ; 2 bytes -.DEFINE mem_room_number ($c7ff) ; AND 0xf gives the size of $c800 -.DEFINE mem_room_array $c800 ; Takes the memory from c800 to c81f +.DEFINE mem_room_number ($c7ff) ; AND 0xf0 >> 8 gives the number of rooms and AND 0xf gives the number of corridors +.DEFINE mem_room_array $c800 ; Takes the memory from c800 to c840 +.DEFINE mem_corridors_array $c840 ; Takes the memory from c840 to c8a0 +; room = struct { +; x1: u8 +; x2: u8 +; y1: u8 +; y2: u8 +; } 4bytes +; corridor = struct { +; orientation: bool +; start u8 +; end u8 +; position u8 +; cut: u8 +; _padding: u24 +; } 8bytes .DEFINE enum_direction_left $01 .DEFINE enum_direction_right $02 |