?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1.     ORG $1000
  2.  
  3.     RELOCATE_START
  4.  
  5.     RELOCATE_START      ; error 2x start
  6.  
  7.     dw      relocate_count
  8.     dw      relocate_size
  9.  
  10. label1:
  11.     call    label1
  12.     ld      a,high label1   ; warning about unstable expression
  13. label2:
  14.     ld      a,high(4*label2) - high(2*label1)   ; warning about unstable expression
  15.     ld      a,high(8*label2) - high(8*label1)   ; this one is stable (no warning)
  16.  
  17.     ld      a,high label2   ; relunstable-ok ; warning supressed
  18.  
  19.     ld      hl,high label1  ; can't be relocated by simple "+offset" in regular mode (would work in HIGH mode)
  20.  
  21.     RELOCATE_END
  22.  
  23.     RELOCATE_START   HIGH   ; error - HIGH and "regular" mode can't be mixed in the same assembling unit
  24.  
  25.     RELOCATE_TABLE
  26.  
  27.     RELOCATE_END        ; error about missing START
  28.     RELOCATE_START      ; error about missing END
  29.