summaryrefslogtreecommitdiff
path: root/home/flag.asm
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2017-12-09 00:50:59 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2017-12-09 02:15:46 -0500
commit512863989fb2cb17bcca2f27a61fe3fa8f567b9a (patch)
tree84ab5a58da5e42fa32bc5eb2779d6a47c54ce71e /home/flag.asm
parent89b9292db0898f8ad2b6ea8513a3190762eb58c8 (diff)
Document constants with comments, actual names, and more thorough usage
Diffstat (limited to 'home/flag.asm')
-rw-r--r--home/flag.asm12
1 files changed, 6 insertions, 6 deletions
diff --git a/home/flag.asm b/home/flag.asm
index 099f4bf00..d2b70731a 100644
--- a/home/flag.asm
+++ b/home/flag.asm
@@ -38,9 +38,9 @@ FlagAction:: ; 0x2e76
; inputs:
; b: function
-; 0 clear bit
-; 1 set bit
-; 2 check bit
+; 0 RESET_FLAG clear bit
+; 1 SET_FLAG set bit
+; 2 CHECK_FLAG check bit
; de: bit number
; hl: index within bit table
@@ -75,9 +75,9 @@ FlagAction:: ; 0x2e76
; check b's value: 0, 1, 2
ld a, b
- cp 1
- jr c, .clearbit ; 0
- jr z, .setbit ; 1
+ cp SET_FLAG
+ jr c, .clearbit ; RESET_FLAG
+ jr z, .setbit ; SET_FLAG
; check bit
ld a, [hl]