; requires --dirbol on command line (for testing purposes of last OPT pop restoring it)
OPT pop ; warn about no previous syntax in stack
ld hl,bc,de,bc
mirror a ; error (Z80N instruction)
; try all possible options
OPT push reset --nofakes --syntax=a --zxnext=cspect --reversepop --dirbol
ld hl,bc,,de,bc ; error because --nofakes (!)
sub a,b,,c
mirror a : break ; next enabled, including CSpect emulator extras
pop hl,,bc ; pop bc : pop hl (--reversepop)
pop bc ; validation
OPT push reset --syntax=aBfl ; this one can be at beggining of line (--dirbol)
OPT = 1 nop : OPT --dirbol ; first is label, instruction, adding --dirbol back (no push/reset)
ld hl,bc,,de,bc ; 2x warning about fAkEs (suppression is case sensitive)
ld hl,bc ; fake with suppressed warning
mirror a ; error (Z80N instruction)
pop hl,,bc ; pop hl : pop bc
pop hl ; validation
OPT pop : OPT pop ; pop syntax two times (and verify --dirbol works)
ld hl,bc,de,bc
OPT pop : OPT reset ; warn about no previous syntax in stack, then reset (but no options)
OPT = 2 nop ; this one is no more dirbol, but just a label
OPT --nologo 1 2 3 4 5 6 7 8 9 A B C D E F G ; invalid option(s) and too many of them
OPT unknown ; error about invalid command
OPT reset push ; warn about pushing default syntax