Use const_skip and const_next macros for brevity

This commit is contained in:
Rangi 2020-07-09 14:51:48 -04:00
parent 676a35f76f
commit 3e572b6f48
20 changed files with 544 additions and 2284 deletions

View file

@ -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