sfr.s (3986B)
1__VRAM = 0x8000 2__VRAM8000 = 0x8000 3__VRAM8800 = 0x8800 4__VRAM9000 = 0x9000 5__SCRN0 = 0x9800 6__SCRN1 = 0x9C00 7__SRAM = 0xA000 8__RAM = 0xC000 9__RAMBANK = 0xD000 10__OAMRAM = 0xFE00 11__IO = 0xFF00 12__AUD3WAVERAM = 0xFF30 13__HRAM = 0xFF80 14 15.globl __VRAM, __VRAM8000, __VRAM8800, __VRAM9000, __SCRN0, __SCRN1, __SRAM, __RAM, __RAMBANK, __OAMRAM, __IO, __AUD3WAVERAM, __HRAM 16 17_rRAMG = 0x0000 18_rROMB0 = 0x2000 19_rROMB1 = 0x3000 20_rRAMB = 0x4000 21 22.globl _rRAMG, _rROMB0, _rROMB1, _rRAMB 23 24_P1_REG = 0xFF00 ; Joystick: 1.1.P15.P14.P13.P12.P11.P10 25_SB_REG = 0xFF01 ; Serial IO data buffer 26_SC_REG = 0xFF02 ; Serial IO control register 27_DIV_REG = 0xFF04 ; Divider register 28_TIMA_REG = 0xFF05 ; Timer counter 29_TMA_REG = 0xFF06 ; Timer modulo 30_TAC_REG = 0xFF07 ; Timer control 31_IF_REG = 0xFF0F ; Interrupt flags: 0.0.0.JOY.SIO.TIM.LCD.VBL 32_NR10_REG = 0xFF10 ; Sound register 33_NR11_REG = 0xFF11 ; Sound register 34_NR12_REG = 0xFF12 ; Sound register 35_NR13_REG = 0xFF13 ; Sound register 36_NR14_REG = 0xFF14 ; Sound register 37_NR21_REG = 0xFF16 ; Sound register 38_NR22_REG = 0xFF17 ; Sound register 39_NR23_REG = 0xFF18 ; Sound register 40_NR24_REG = 0xFF19 ; Sound register 41_NR30_REG = 0xFF1A ; Sound register 42_NR31_REG = 0xFF1B ; Sound register 43_NR32_REG = 0xFF1C ; Sound register 44_NR33_REG = 0xFF1D ; Sound register 45_NR34_REG = 0xFF1E ; Sound register 46_NR41_REG = 0xFF20 ; Sound register 47_NR42_REG = 0xFF21 ; Sound register 48_NR43_REG = 0xFF22 ; Sound register 49_NR44_REG = 0xFF23 ; Sound register 50_NR50_REG = 0xFF24 ; Sound register 51_NR51_REG = 0xFF25 ; Sound register 52_NR52_REG = 0xFF26 ; Sound register 53_PCM_SAMPLE = 0xFF30 ; PCM wave pattern 54_AUD3WAVE = 0xFF30 ; PCM wave pattern 55_LCDC_REG = 0xFF40 ; LCD control 56_STAT_REG = 0xFF41 ; LCD status 57_SCY_REG = 0xFF42 ; Scroll Y 58_SCX_REG = 0xFF43 ; Scroll X 59_LY_REG = 0xFF44 ; LCDC Y-coordinate 60_LYC_REG = 0xFF45 ; LY compare 61_DMA_REG = 0xFF46 ; DMA transfer 62_BGP_REG = 0xFF47 ; BG palette data 63_OBP0_REG = 0xFF48 ; OBJ palette 0 data 64_OBP1_REG = 0xFF49 ; OBJ palette 1 data 65_WY_REG = 0xFF4A ; Window Y coordinate 66_WX_REG = 0xFF4B ; Window X coordinate 67_KEY1_REG = 0xFF4D ; CPU speed 68_VBK_REG = 0xFF4F ; VRAM bank 69_HDMA1_REG = 0xFF51 ; DMA control 1 70_HDMA2_REG = 0xFF52 ; DMA control 2 71_HDMA3_REG = 0xFF53 ; DMA control 3 72_HDMA4_REG = 0xFF54 ; DMA control 4 73_HDMA5_REG = 0xFF55 ; DMA control 5 74_RP_REG = 0xFF56 ; IR port 75_BCPS_REG = 0xFF68 ; BG color palette specification 76_BCPD_REG = 0xFF69 ; BG color palette data 77_OCPS_REG = 0xFF6A ; OBJ color palette specification 78_OCPD_REG = 0xFF6B ; OBJ color palette data 79_SVBK_REG = 0xFF70 ; WRAM bank 80_PCM12_REG = 0xFF76 ; Sound channel 1&2 PCM amplitude (R) 81_PCM34_REG = 0xFF77 ; Sound channel 3&4 PCM amplitude (R) 82_IE_REG = 0xFFFF ; Interrupt enable 83 84.globl _P1_REG 85.globl _SB_REG, _SC_REG 86.globl _DIV_REG 87.globl _TIMA_REG, _TMA_REG, _TAC_REG 88.globl _IF_REG 89.globl _NR10_REG, _NR11_REG, _NR12_REG, _NR13_REG, _NR14_REG 90.globl _NR21_REG, _NR22_REG, _NR23_REG, _NR24_REG 91.globl _NR30_REG, _NR31_REG, _NR32_REG, _NR33_REG, _NR34_REG 92.globl _NR41_REG, _NR42_REG, _NR43_REG, _NR44_REG 93.globl _NR50_REG, _NR51_REG, _NR52_REG 94.globl _PCM_SAMPLE, _AUD3WAVE 95.globl _LCDC_REG 96.globl _STAT_REG 97.globl _SCY_REG, _SCX_REG 98.globl _LY_REG, _LYC_REG 99.globl _DMA_REG 100.globl _BGP_REG 101.globl _OBP0_REG, _OBP1_REG 102.globl _WY_REG, _WX_REG 103.globl _KEY1_REG 104.globl _VBK_REG 105.globl _HDMA1_REG, _HDMA2_REG, _HDMA3_REG, _HDMA4_REG, _HDMA5_REG 106.globl _RP_REG 107.globl _BCPS_REG, _BCPD_REG 108.globl _OCPS_REG, _OCPD_REG 109.globl _SVBK_REG 110.globl _PCM12_REG, _PCM34_REG 111.globl _IE_REG