?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1.     DEVICE ZXSPECTRUMNEXT
  2.     ORG $8000
  3.         daa         ; some eol comments with keyword1 included
  4.         nop         ; some eol comment without any keyword
  5. ; full line comment with keyword2 included (line without code)
  6. ; full line without any keyword, but wrong cased Keyword2 (SLD keywords are case sensitive)
  7. label1: DB  1,"b",3 ; some keyword3 here
  8. label2: DB  4,"e",6 ; keyword none here
  9.  
  10.     SLDOPT COMMENT keyword1, keyword2   ; SLDOPT is global directive
  11.     SLDOPT COMMENT keyword2, keyword3   ; and keywords could be added over multiple lines
  12.  
  13.         ret         ; some keyword1 also after SLDOPT specified (should not matter)
  14.         nop         ; some eol comment without any keyword
  15.     MMU 6, 100
  16.     DISP 50000, 100
  17.         cpl         ; keyword2 in displacement block (displaced address reported)
  18.     ENT
  19.  
  20.         ORG 60000
  21.     MACRO MEMGUARD
  22.         defb 0  ; WPMEM keyword1
  23.         nop     ; keyword3
  24.     ENDM
  25.  
  26.     MEMGUARD
  27. someData:   dw 1234
  28.     MEMGUARD
  29.  
  30.     ; syntax error
  31.     SLDOPT INVALID whatever
  32.     SLDOPT COMMENT @@@  ; invalid keyword (must roughly fit rules of valid labels)
  33.     SLDOPT COMMENT
  34.     SLDOPT
  35.