======== BKGR Memory Map ======== ===== Functions ===== ^ Address ^ name ^ Description ^ | 08001800 | unsafe_dma_fill_32 | | | 08003074 | dma_fill_32 | | | 080030E8 | dma_transfer_32 | | | 08003164 | dma_transfer_16 | | | 080031D0 | unsafe_dma_transfer_16 | | | 080031E8 | read_keys | | | 08003218 | sync_vblank | Syncronizes with vblank. Skips a frame until it reaches vblank. | | 08003228 | skip_vblank | Skips vblank by waiting untill vblank is over. | | 080032DC | check_stacks | Checks whether both stacks are still intact or haven't overflowed. | | 08002FC4 | integer_to_ascii_b | Converts an integer to an ascii string. Writes backwards in buffer. | | 08002FF4 | integer_to_ascii_f | Converts an integer to an ascii string. Writes forwards in buffer. | | 08004BCC | set_music | Changes music | | 080050B8 | set_volume | Changes volume | | 08009704 | main | | | 0800E7B4 | undefined | File select strings init | | 08012538 | setup_bg_offsets | Setup BG offsets. Offset is 0 if BG is static. | | 080128A8 | disable_backgrounds | Disables backgrounds which are given permission. | | 0801291C | enable_backgrounds | Enables backgrounds which are given permission. | | 08012994 | setup_room | | | 08013874 | setup_animation_tiles | | | 08060978 | show_copyright_screen | Shows the copy right screen. Initializes video ram by doing that. | | 08062C74 | show_gameover_screen | Shows the gameover screen. Only initializes video ram. | | 080643C4 | HuffUnCompReadNormal | | | 080643C8 | LZ77UnCompReadNormalWrite16bit | | ===== Data ===== ^ Address ^ Ends ^ Description ^ | 8065210 | 8039AAC | Story text| | 80CEB5C | 80CEB80 | Volume array. An array of 9 integers for volume setting | | 80Cf4EC | 80CF61C | Room indexes | | 86AE150 | 86AE198 | Music indexes | | 86AE198 | 86AE300 | Music headers | ===== Ram ===== ^ Address ^ Ends/Length ^ Description ^ | 02001080 | 0x2 | Room id | | 02001082 | 0x2 | Room level | | 02001084 | 0x2 | Room music | | 0203DFB0 | 0x4 | Entities pointer |