Deprecate SET in favor of =

`SET` is redundant with `=`, and is already the name of an instruction.
This commit is contained in:
Rangi
2021-11-18 17:28:11 -05:00
committed by Eldred Habert
parent 3e945679ad
commit b76819792d
5 changed files with 34 additions and 45 deletions

View File

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

View File

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

View File

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