?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. ; first relocation block
  3.     RELOCATE_START
  4.  
  5.     ORG $1000
  6.  
  7.     ASSERT 2 * relocate_count == relocate_size
  8.     ASSERT 4 == relocate_count
  9.     dw      relocate_count
  10.     dw      relocate_size
  11.  
  12. reloc1:
  13.     ld      hl,reloc1           ; to be relocated
  14.     ld      de,reloc2           ; to be relocated
  15.     ld      bc,reloc2-reloc1
  16.     ld      sp,absolute1
  17.  
  18.     RELOCATE_END
  19.  
  20. ; no relocation area
  21.     ORG $17DC
  22. absolute1:
  23.     ld      hl,reloc1
  24.     ld      de,reloc2
  25.     ld      bc,reloc2-reloc1
  26.     ld      sp,absolute1
  27.  
  28. ; second relocation block
  29.     RELOCATE_START
  30.  
  31.     ORG $2000
  32.  
  33.     ld      hl,reloc1           ; to be relocated
  34.     ld      de,reloc2           ; to be relocated
  35.     ld      bc,reloc2-reloc1
  36.     ld      sp,absolute1
  37. reloc2:
  38.  
  39.     RELOCATE_TABLE
  40.  
  41.     RELOCATE_END
  42.  
  43.     ASSERT 0 == __ERRORS__
  44.     ASSERT 0 == __WARNINGS__
  45.