]> git.sur5r.net Git - cc65/commitdiff
creativision.inc: add symbolic names for joystick direction values
authorChristian Groessler <chris@groessler.org>
Wed, 8 Mar 2017 12:16:40 +0000 (13:16 +0100)
committerChristian Groessler <chris@groessler.org>
Wed, 8 Mar 2017 12:16:40 +0000 (13:16 +0100)
asminc/creativision.inc

index 59b26101bbfcf9ce89b3aed80ad7a314aa930b00..83a63ba0755ef33c2c0c3c1468309bf6dfca79d5 100644 (file)
@@ -36,6 +36,24 @@ ZP_JOY1_DIR             = $13
 ZP_JOY0_BUTTONS         = $16
 ZP_JOY1_BUTTONS         = $17
 
+;** Joystick direction values (ZP_JOY0_DIR/ZP_JOY1_DIR)
+JOY_N                   = $49
+JOY_NNE                 = $48
+JOY_NE                  = $47
+JOY_ENE                 = $46
+JOY_E                   = $45
+JOY_ESE                 = $44
+JOY_SE                  = $43
+JOY_SSE                 = $42
+JOY_S                   = $41
+JOY_SSW                 = $40
+JOY_SW                  = $4F
+JOY_WSW                 = $4E
+JOY_W                   = $4D
+JOY_WNW                 = $4C
+JOY_NW                  = $4B
+JOY_NNW                 = $4A
+
 ;** BIOS
 BIOS_IRQ1_ADDR          = $FF3F
 BIOS_IRQ2_ADDR          = $FF52