summaryrefslogtreecommitdiff
path: root/constants/input_constants.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2020-07-11 15:47:19 -0400
committerGitHub <noreply@github.com>2020-07-11 15:47:19 -0400
commitaa97e196dd5b37e89db5ddf154dc7aea9b02a045 (patch)
treec994a1ca8f587d674e680ec808e7fcbaab4d053d /constants/input_constants.asm
parent54d76dec388a70260aad6ef6acb94a5b9f95fd6d (diff)
parent3e572b6f48b81e5340980c13b1b37b2907942713 (diff)
Merge pull request #269 from Rangi42/master
Remove enum; add const_skip and const_next
Diffstat (limited to 'constants/input_constants.asm')
-rw-r--r--constants/input_constants.asm18
1 files changed, 9 insertions, 9 deletions
diff --git a/constants/input_constants.asm b/constants/input_constants.asm
index d7aae05b..1f10cc46 100644
--- a/constants/input_constants.asm
+++ b/constants/input_constants.asm
@@ -1,12 +1,3 @@
-A_BUTTON EQU %00000001
-B_BUTTON EQU %00000010
-SELECT EQU %00000100
-START EQU %00001000
-D_RIGHT EQU %00010000
-D_LEFT EQU %00100000
-D_UP EQU %01000000
-D_DOWN EQU %10000000
-
const_def
const BIT_A_BUTTON
const BIT_B_BUTTON
@@ -16,3 +7,12 @@ D_DOWN EQU %10000000
const BIT_D_LEFT
const BIT_D_UP
const BIT_D_DOWN
+
+A_BUTTON EQU 1 << BIT_A_BUTTON
+B_BUTTON EQU 1 << BIT_B_BUTTON
+SELECT EQU 1 << BIT_SELECT
+START EQU 1 << BIT_START
+D_RIGHT EQU 1 << BIT_D_RIGHT
+D_LEFT EQU 1 << BIT_D_LEFT
+D_UP EQU 1 << BIT_D_UP
+D_DOWN EQU 1 << BIT_D_DOWN