?login_element?

Subversion Repositories NedoOS

Rev

Rev 129 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download

  1. ; requires --dirbol on command line (for testing purposes of last OPT pop restoring it)
  2. OPT pop                     ; warn about no previous syntax in stack
  3.     ld      hl,bc,de,bc
  4.     mirror  a               ; error (Z80N instruction)
  5.  
  6.     ; try all possible options
  7. OPT push reset --nofakes --syntax=a --zxnext=cspect --reversepop --dirbol
  8.     ld      hl,bc,,de,bc    ; error because --nofakes (!)
  9.     sub     a,b,,c
  10.     mirror  a : break       ; next enabled, including CSpect emulator extras
  11.     pop     hl,,bc          ; pop bc : pop hl (--reversepop)
  12.     pop     bc  ; validation
  13. OPT push reset --syntax=aBfl    ; this one can be at beggining of line (--dirbol)
  14. OPT = 1 nop : OPT --dirbol  ; first is label, instruction, adding --dirbol back (no push/reset)
  15.     ld      hl,bc,,de,bc    ; 2x warning about fAkEs (suppression is case sensitive)
  16.     ld      hl,bc           ; fake with suppressed warning
  17.     mirror  a               ; error (Z80N instruction)
  18.     pop     hl,,bc          ; pop hl : pop bc
  19.     pop     hl  ; validation
  20. OPT pop : OPT pop           ; pop syntax two times (and verify --dirbol works)
  21.     ld      hl,bc,de,bc
  22. OPT pop : OPT reset         ; warn about no previous syntax in stack, then reset (but no options)
  23. OPT = 2 nop                 ; this one is no more dirbol, but just a label
  24.  
  25.     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
  26.  
  27.     OPT unknown             ; error about invalid command
  28.     OPT reset push          ; warn about pushing default syntax
  29.