Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download
# file opened: syntax_mM.asm1 0000 ; SYNTAX options "mM":2 0000 ; m Switch off "Accessing low memory" warning globally3 0000 ; M Alias "m" and "M" for "(hl)" to cover 8080-like syntax: ADD A,M4 00005 0000 ; verify regular syntax works as expected with default optionssyntax_mM.asm(6): warning: Accessing low memory address 0x007B, is it ok?: ld a,(123)6 0000 3A 7B 00 ld a,(123) ; warning about low memory access7 0003 3A 7B 00 ld a,(123) ; ok ; warning suppressedsyntax_mM.asm(8): error: Label not found: m8 0006 C6 00 add a,m ; label not found9 0008 86 add a,(hl) ; regular add instruction10 0009 OPT push --syntax=mM ; test the syntax options "mM"11 0009 3A 7B 00 ld a,(123)12 000C 3A 7B 00 ld a,(123) ; ok13 000F 86 add a,m ; (hl) used14 0010 86 add a,M ; (hl) used15 0011 86 add a,(hl) ; regular add instruction16 0012 OPT pop ; test push+pop of new optionssyntax_mM.asm(17): warning: Accessing low memory address 0x007B, is it ok?: ld a,(123)17 0012 3A 7B 00 ld a,(123) ; warning about low memory access18 0015 3A 7B 00 ld a,(123) ; ok ; warning suppressedsyntax_mM.asm(19): error: Label not found: M19 0018 C6 00 add a,M ; label not found20 001A 86 add a,(hl) ; regular add instruction21 001B ASSERT 2 == 2 && 2 == 222 001B# file closed: syntax_mM.asmValue Label------ - -----------------------------------------------------------