Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download
# file opened: syntax_mM.asm
1 0000 ; SYNTAX options "M":
2 0000 ; m - removed in v1.20.0, use `-Wno-rdlow` instead
3 0000 ; M Alias "m" and "M" for "(hl)" to cover 8080-like syntax: ADD A,M
4 0000
5 0000 ; verify regular syntax works as expected with default options
syntax_mM.asm(6): error: Label not found: m
6 0000 C6 00 add a,m ; label not found
7 0002 86 add a,(hl) ; regular add instruction
8 0003 OPT push --syntax=M ; test the syntax options "M"
9 0003 86 add a,m ; (hl) used
10 0004 86 add a,M ; (hl) used
11 0005 86 add a,(hl) ; regular add instruction
12 0006 OPT pop ; test push+pop of new options
syntax_mM.asm(13): error: Label not found: M
13 0006 C6 00 add a,M ; label not found
14 0008 86 add a,(hl) ; regular add instruction
15 0009 ASSERT 0 == 0 && 2 == 2
16 0009
# file closed: syntax_mM.asm
Value Label
------ - -----------------------------------------------------------