gb_test2

diff hw.inc @ 3:d7c6e1165028

added input handling
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 10 Jan 2019 06:05:21 +0200
parents cacfa0888410
children
line diff
     1.1 --- a/hw.inc	Thu Jan 10 04:48:34 2019 +0200
     1.2 +++ b/hw.inc	Thu Jan 10 06:05:21 2019 +0200
     1.3 @@ -1,4 +1,5 @@
     1.4  ; vi:ft=rgbasm:
     1.5 +REG_P1		equ $ff00
     1.6  REG_LCDC        equ $ff40
     1.7  REG_STAT        equ $ff41
     1.8  REG_SCY         equ $ff42
     1.9 @@ -11,6 +12,17 @@
    1.10  REG_WY          equ $ff4a
    1.11  REG_WX          equ $ff4b
    1.12  
    1.13 +P1_RIGHT	equ $01
    1.14 +P1_A		equ $01
    1.15 +P1_LEFT		equ $02
    1.16 +P1_B		equ $02
    1.17 +P1_UP		equ $04
    1.18 +P1_SELECT	equ $04
    1.19 +P1_DOWN		equ $08
    1.20 +P1_START	equ $08
    1.21 +P1_DPAD		equ $20
    1.22 +P1_BUTTONS	equ $10
    1.23 +
    1.24  LCDC_BGON       equ $01
    1.25  LCDC_OBJON      equ $02
    1.26  LCDC_OBJ16      equ $04