gb_test2

annotate hw.inc @ 4:216bdbc75cf4

optionally use the generated chessboard instead of the logo to fit in my 2k test ROM
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 10 Jan 2019 06:38:13 +0200
parents cacfa0888410
children
rev   line source
nuclear@0 1 ; vi:ft=rgbasm:
nuclear@3 2 REG_P1 equ $ff00
nuclear@0 3 REG_LCDC equ $ff40
nuclear@0 4 REG_STAT equ $ff41
nuclear@0 5 REG_SCY equ $ff42
nuclear@0 6 REG_SCX equ $ff43
nuclear@0 7 REG_LY equ $ff44
nuclear@0 8 REG_LYC equ $ff45
nuclear@0 9 REG_BGP equ $ff47
nuclear@0 10 REG_OBP0 equ $ff48
nuclear@0 11 REG_OBP1 equ $ff49
nuclear@0 12 REG_WY equ $ff4a
nuclear@0 13 REG_WX equ $ff4b
nuclear@0 14
nuclear@3 15 P1_RIGHT equ $01
nuclear@3 16 P1_A equ $01
nuclear@3 17 P1_LEFT equ $02
nuclear@3 18 P1_B equ $02
nuclear@3 19 P1_UP equ $04
nuclear@3 20 P1_SELECT equ $04
nuclear@3 21 P1_DOWN equ $08
nuclear@3 22 P1_START equ $08
nuclear@3 23 P1_DPAD equ $20
nuclear@3 24 P1_BUTTONS equ $10
nuclear@3 25
nuclear@0 26 LCDC_BGON equ $01
nuclear@0 27 LCDC_OBJON equ $02
nuclear@0 28 LCDC_OBJ16 equ $04
nuclear@0 29 LCDC_BGMAP_9C00 equ $08
nuclear@0 30 LCDC_CHAR_8000 equ $10
nuclear@0 31 LCDC_WON equ $20
nuclear@0 32 LCDC_WMAP_9C00 equ $40
nuclear@0 33 LCDC_DISPON equ $80
nuclear@0 34
nuclear@0 35 STAT_MODE_MASK equ $03
nuclear@0 36 STAT_LYC equ $04
nuclear@0 37 STAT_IE_HBLANK equ $08
nuclear@0 38 STAT_IE_VBLANK equ $10
nuclear@0 39 STAT_IE_OAM equ $20
nuclear@0 40 STAT_IE_LYC equ $40