mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Deprecate SET in favor of =
`SET` is redundant with `=`, and is already the name of an instruction.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
def variable = 1
|
||||
println variable
|
||||
def variable set 2
|
||||
def variable = 2
|
||||
println variable
|
||||
redef variable = 3
|
||||
println variable
|
||||
redef variable set 4
|
||||
redef variable = 4
|
||||
println variable
|
||||
|
||||
DEF constant EQU 42
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
V set 0
|
||||
V set 1
|
||||
V = 0
|
||||
V = 1
|
||||
PRINTLN "V={V}"
|
||||
|
||||
W equ 1
|
||||
W set 0
|
||||
W = 0
|
||||
|
||||
rsset 1
|
||||
X rb 0
|
||||
X set 0
|
||||
X = 0
|
||||
|
||||
SECTION "Test", ROM0[1]
|
||||
Y:
|
||||
Y set 0
|
||||
Y = 0
|
||||
|
||||
@@ -57,7 +57,7 @@ ENDM
|
||||
; Bit Operations Instructions
|
||||
|
||||
bitop_u3_instruction_list: MACRO
|
||||
NBIT SET 0
|
||||
NBIT = 0
|
||||
REPT 8
|
||||
\1 NBIT,a
|
||||
\1 NBIT,b
|
||||
@@ -67,7 +67,7 @@ NBIT SET 0
|
||||
\1 NBIT,h
|
||||
\1 NBIT,[hl]
|
||||
\1 NBIT,l
|
||||
NBIT SET NBIT + 1
|
||||
NBIT = NBIT + 1
|
||||
ENDR
|
||||
ENDM
|
||||
|
||||
|
||||
Reference in New Issue
Block a user