?login_element?

Subversion Repositories NedoOS

Rev

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

  1.     DEVICE ZXSPECTRUM48
  2.     org     $8000
  3.     ; 17 bytes block of "default" memory values
  4.     db      "ABCDEFGHIJKLMNOPZ"
  5.  
  6.     ALIGN   0       ; error
  7.     ALIGN   1,-1    ; error
  8.     ALIGN   1,256   ; error
  9.     ALIGN   3       ; error
  10.     ALIGN   5,10    ; error
  11.     ALIGN   $10000  ; error
  12.  
  13.     ; re-run over the initial values again with different ALIGN directives
  14.     org     $8000
  15.     db      'a'     ; [8000] = 'a'
  16.     ALIGN   1       ; effective nothing should happen here
  17.     ALIGN   1, '!'  ; and neighter here
  18.     ALIGN   2       ; this should advance to $8002 + preserve memory
  19.     ALIGN   4, 'b'  ; [8002] = [8003] = 'b'
  20.     ALIGN   7, '!'  ; error
  21.     ALIGN   8       ; advance to 8008, preserve memory
  22.     ALIGN   16, 'c' ; [8008..800F] = 'c'
  23.     ALIGN           ; should not make any difference (already at MOD 4 address)
  24.  
  25.     ; the final result should be "aBbbEFGHccccccccZ"
  26.  
  27.     SAVEBIN "dir_align.bin", $8000, 17  ; modified area is saved into BIN file
  28.  
  29.     ALIGN   1,      ; error
  30.