diff options
author | Marcus Huderle <huderlem@gmail.com> | 2013-12-15 16:18:14 -0600 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2013-12-15 16:18:14 -0600 |
commit | 549fe35420c2cd114cafa5997633297fa3ff9290 (patch) | |
tree | 454f88103f1a3616612afd73bc532adbdf036459 /constants/hardware_constants.asm | |
parent | ac9e6221441aa17666f556ea4ad35ecdeaccc56a (diff) | |
parent | 323a1a638fb2b35a93506f1c3ca13f87e9357467 (diff) |
Merged and fixed incbin conflicts with Danny.
Diffstat (limited to 'constants/hardware_constants.asm')
-rwxr-xr-x | constants/hardware_constants.asm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/constants/hardware_constants.asm b/constants/hardware_constants.asm new file mode 100755 index 00000000..de9d2311 --- /dev/null +++ b/constants/hardware_constants.asm @@ -0,0 +1,21 @@ +; hardware registers, from the pandocs http://nocash.emubase.de/pandocs.htm
+rJOYP EQU $FF00
+rDIV EQU $FF04
+rLCDC EQU $FF40
+rSCY EQU $FF42
+rSCX EQU $FF43
+rBGP EQU $FF47
+rOBP0 EQU $FF48
+rOBP1 EQU $FF49
+rWY EQU $FF4A
+rWX EQU $FF4B
+rIE EQU $FFFF
+
+BTN_A EQU %00000001
+BTN_B EQU %00000010
+BTN_SELECT EQU %00000100
+BTN_START EQU %00001000
+BTN_RIGHT EQU %00010000
+BTN_LEFT EQU %00100000
+BTN_UP EQU %01000000
+BTN_DOWN EQU %10000000
\ No newline at end of file |