?login_element?

Subversion Repositories NedoOS

Rev

Rev 129 | Blame | Compare with Previous | Last modification | View Log | Download

  1. ; SYNTAX option "aBFL":     (used to be "ABFL", but "A" was removed)
  2. ;  L is "unimplemented yet" (comments below are for future implementation)
  3.     ld      bc,hl       ; error
  4.     ld      bc,hl       ; still error even with "fake" in this comment
  5.     sub     a,b         ; sub b
  6.     sub     a,,b        ; sub a : sub b
  7.     sub     a``b        ; error
  8.     ld      b,h,,c,l    ; ld b,h : ld c,l
  9.     ld      b,h``c,l    ; error
  10.     ld      b,h, c,l    ; error
  11. hl:                     ; error
  12.     ld      a,(hl)      ; expression error  ; with "L" unimplemented this actually works as LD a,8
  13.     ld      a,[hl]      ; memory reference
  14.  
  15.     ; some specifics of B mode - I/O instructions still work only with round parentheses
  16.     jp      (c)
  17.     jp      [c]
  18.     jp      (C)
  19.     jp      [C]
  20.     OPT --zxnext
  21.     jp      (c)
  22.     jp      [c]
  23.     jp      (C)
  24.     jp      [C]
  25.  
  26.     in      a,(c)
  27.     in      a,(254)
  28.     out     (c),0
  29.     out     (c),b
  30.     out     (254),a
  31.  
  32.     in      a,254       ; or without parentheses at all (new syntax variant)
  33.     out     254,a
  34.  
  35.     ; but square brackets will not work (errors)
  36.     in      a,[c]
  37.     in      a,[254]
  38.     out     [c],b
  39.     out     [254],a
  40.