diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/bank_00.asm | 73 | ||||
-rw-r--r-- | source/bank_57.asm | 5 | ||||
-rw-r--r-- | source/bank_5e.asm | 4 | ||||
-rw-r--r-- | source/bank_5f.asm | 10 | ||||
-rw-r--r-- | source/bank_65.asm | 7 | ||||
-rw-r--r-- | source/bank_6c.asm | 5 | ||||
-rw-r--r-- | source/bank_6d.asm | 4 | ||||
-rw-r--r-- | source/bank_70.asm | 7 | ||||
-rw-r--r-- | source/bank_78.asm | 2 | ||||
-rw-r--r-- | source/bank_79.asm | 5 | ||||
-rw-r--r-- | source/bank_7c.asm | 5 | ||||
-rw-r--r-- | source/bank_7e.asm | 11 | ||||
-rw-r--r-- | source/bank_7f.asm | 11 |
13 files changed, 147 insertions, 2 deletions
diff --git a/source/bank_00.asm b/source/bank_00.asm index 961107b..05c1d18 100644 --- a/source/bank_00.asm +++ b/source/bank_00.asm @@ -484,6 +484,79 @@ function_00_0458:: pop af ret +unknown_00_0475:: ; ??? + db 8,8,8,8, 8,8,8,8, 8,8,8,8, 8,8,8,8 + db 8,8,8,0, 8,8,8,0, 8,8,8,0, 8,8,8,0 + db 8,0,8,0, 8,0,8,0, 8,0,8,0, 8,0,8,0 + db 8,0,0,8, 0,0,8,0, 0,8,0,0, 8,0,0,8 + db 0,8,0,0, 0,8,0,0, 0,8,0,0, 0,8,0,0 + +lcd:: + push af + push bc + push de + push hl + + ld hl, .return + push hl + + ld a, [w_c340] + sla a + ld c, a + ld b, 0 + ld hl, .pointers + add hl, bc + ld c, [hl] + inc hl + ld b, [hl] + push bc + pop hl + jp hl + +.return: + ld hl, w_c343 + inc [hl] + ld hl, rSTAT +.hblank_enter + ld a, STATF_LCD + and [hl] + jr nz, .hblank_enter + + pop hl + pop de + pop bc + pop af +rept 40 + nop +endr + reti + +.pointers: + const_def + const_dw LCD_FUNCTION_0, lcd_function_0 + const_dw LCD_FUNCTION_1, lcd_function_1 + const_dw LCD_FUNCTION_2, lcd_function_2 + const_dw LCD_FUNCTION_3, lcd_function_3 + const_dw LCD_FUNCTION_4, lcd_function_4 + const_dw LCD_FUNCTION_5, lcd_function_5 + const_dw LCD_FUNCTION_6, lcd_function_6 + const_dw LCD_FUNCTION_7, lcd_function_7 + const_dw LCD_FUNCTION_8, lcd_function_8 + const_dw LCD_FUNCTION_9, lcd_function_9 + const_dw LCD_FUNCTION_A, lcd_function_a + const_dw LCD_FUNCTION_B, lcd_function_b + +lcd_function_0:: + ret ; unused + +timer:: + reti + + reti ; unused + +joypad:: + reti + SECTION "vwf_draw_char", ROM0[$0723] vwf_char_draw:: ld a, [w_vwf_char_start_x] diff --git a/source/bank_57.asm b/source/bank_57.asm index 85ce178..93cc7f9 100644 --- a/source/bank_57.asm +++ b/source/bank_57.asm @@ -2,3 +2,8 @@ SECTION "gfx_text_chars_light", ROMX[$4000], BANK[$57] gfx_text_chars_light:: INCBIN "gfx/fonts/text_chars_light.bin" .end:: + +SECTION "tilemap_how_to_play", ROMX[$7c00], BANK[$57] +tilemap_how_to_play:: +INCBIN "gfx/how_to_play/how_to_play.tilemap" +.end:: diff --git a/source/bank_5e.asm b/source/bank_5e.asm new file mode 100644 index 0000000..a0d0d1e --- /dev/null +++ b/source/bank_5e.asm @@ -0,0 +1,4 @@ +SECTION "compressed_tilemap_attrmap_how_to_play_safari", ROMX[$7c00], BANK[$5e] +compressed_tilemap_attrmap_how_to_play_safari:: +INCBIN "gfx/how_to_play/safari.tilemap_attrmap.xor" +.end:: diff --git a/source/bank_5f.asm b/source/bank_5f.asm new file mode 100644 index 0000000..39e9a7e --- /dev/null +++ b/source/bank_5f.asm @@ -0,0 +1,10 @@ +SECTION "unused_gfx_picross_2", ROMX[$4000], BANK[$5f] +unused_gfx_picross_2:: +INCBIN "gfx/unused/mario_wario.bin" +.end:: + +SECTION "unused_gfx_picross_2_finals", ROMX[$6c00], BANK[$5f] +unused_gfx_picross_2_finals:: +INCBIN "gfx/unused/marios_picross_final.bin" +INCBIN "gfx/unused/warios_picross_final.bin" +.end:: diff --git a/source/bank_65.asm b/source/bank_65.asm index 1aa9d0d..f3e15a6 100644 --- a/source/bank_65.asm +++ b/source/bank_65.asm @@ -1,4 +1,9 @@ -SECTION "gfx_font_2", ROMX[$7000], BANK[$65] +SECTION "bank65", ROMX[$4000], BANK[$65] + +gfx_album_picture_frames:: +INCBIN "gfx/safari_zone_album/picture_frames.bin" +.end:: + gfx_font_2:: INCBIN "gfx/fonts/font_2.bin" .end:: diff --git a/source/bank_6c.asm b/source/bank_6c.asm index 205b1d6..da55e0e 100644 --- a/source/bank_6c.asm +++ b/source/bank_6c.asm @@ -1,3 +1,8 @@ +SECTION "gfx_unknown_6c_4000", ROMX[$4000], BANK[$6c] +gfx_unknown_6c_4000:: +INCBIN "gfx/unknown/unknown_6c_4000.bin" +.end:: + SECTION "compressed_tilemap_attrmap_pokedex_pic", ROMX[$7c00], BANK[$6c] compressed_tilemap_attrmap_pokedex_pic:: INCBIN "gfx/pokedex/pokedex_pic.tilemap_attrmap.xor" diff --git a/source/bank_6d.asm b/source/bank_6d.asm new file mode 100644 index 0000000..a797818 --- /dev/null +++ b/source/bank_6d.asm @@ -0,0 +1,4 @@ +SECTION "gfx_album_picture_frames_light", ROMX[$4000], BANK[$6d] +gfx_album_picture_frames_light:: +INCBIN "gfx/safari_zone_album/picture_frames_light.bin" +.end:: diff --git a/source/bank_70.asm b/source/bank_70.asm index bb21991..5b83df2 100644 --- a/source/bank_70.asm +++ b/source/bank_70.asm @@ -1,3 +1,10 @@ +SECTION "unused_gfx_picross_2_levels", ROMX[$4000], BANK[$70] +unused_gfx_picross_2_levels:: +INCBIN "gfx/unused/picross_2.bin" +INCBIN "gfx/unused/marios_picross.bin" +INCBIN "gfx/unused/warios_picross.bin" +.end:: + SECTION "gfx_lv_2_lake_zone", ROMX[$64c0], BANK[$70] gfx_lv_2_lake_zone:: INCBIN "gfx/safari_map/lv_2_lake_zone.bin" diff --git a/source/bank_78.asm b/source/bank_78.asm index 079ea83..38358ae 100644 --- a/source/bank_78.asm +++ b/source/bank_78.asm @@ -13,5 +13,5 @@ INCBIN "gfx/town_map/lv_10_hanada_cave_unused.bin" .end:: gfx_how_to_play_safari:: -INCBIN "gfx/how_to_play/how_to_play_safari.bin" +INCBIN "gfx/how_to_play/safari.bin" .end:: diff --git a/source/bank_79.asm b/source/bank_79.asm index a541b0d..a475765 100644 --- a/source/bank_79.asm +++ b/source/bank_79.asm @@ -1,3 +1,8 @@ +SECTION "gfx_cancel_ok_no_yes", ROMX[$4000], BANK[$79] +gfx_cancel_ok_no_yes:: +INCBIN "gfx/menus/cancel_ok_no_yes.bin" +.end:: + SECTION "compressed_tilemap_attrmap_town_map", ROMX[$5800], BANK[$79] compressed_tilemap_attrmap_town_map:: INCBIN "gfx/town_map/town_map.tilemap_attrmap.xor" diff --git a/source/bank_7c.asm b/source/bank_7c.asm index 230ae4c..66c200b 100644 --- a/source/bank_7c.asm +++ b/source/bank_7c.asm @@ -3,6 +3,11 @@ gfx_alphabets:: INCBIN "gfx/fonts/alphabets.bin" .end:: +SECTION "attrmap_how_to_play", ROMX[$5c00], BANK[$7c] +attrmap_how_to_play:: +INCBIN "gfx/how_to_play/how_to_play.attrmap" +.end:: + SECTION "compressed_tilemap_attrmap_album_pic", ROMX[$7000], BANK[$7c] compressed_tilemap_attrmap_album_pic:: INCBIN "gfx/safari_zone_album/album_pic.tilemap_attrmap.xor" diff --git a/source/bank_7e.asm b/source/bank_7e.asm new file mode 100644 index 0000000..aacb3e5 --- /dev/null +++ b/source/bank_7e.asm @@ -0,0 +1,11 @@ +INCLUDE "charmap.inc" + +SECTION "ASCII credits 1", ROMX[$4010], BANK[$7e] + +pushc +setcharmap ascii + db "DSEQLITE", 0 + db $01 + db "CRTS(C) mcmxcvi by Toshiyuki Ueno", 0 + db "toshi-u@tau.bekkoame.or.jp", 0 +popc diff --git a/source/bank_7f.asm b/source/bank_7f.asm new file mode 100644 index 0000000..b07a270 --- /dev/null +++ b/source/bank_7f.asm @@ -0,0 +1,11 @@ +INCLUDE "charmap.inc" + +SECTION "ASCII credits 2", ROMX[$4010], BANK[$7f] + +pushc +setcharmap ascii + db "DSEQLITE", 0 + db $01 + db "CRTS(C) mcmxcvi by Toshiyuki Ueno", 0 + db "toshi-u@tau.bekkoame.or.jp", 0 +popc |