?login_element?

Subversion Repositories NedoOS

Rev

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

  1.         device zxspectrum128
  2.        
  3.         struct str
  4. f0      byte 0
  5. f1      byte 0
  6.         byte 0
  7.         ends
  8.        
  9.         struct str1
  10.         byte 0
  11. f0      byte 0
  12.         ends        
  13.        
  14.         module mod
  15.         struct str
  16. f0      word 0
  17. f1      word 0
  18. f2      word 0
  19.         word 0
  20.         ends
  21.  
  22.         ;offsets
  23.         db str
  24.         db str.f0
  25.         db str.f1
  26.         db str.f2
  27.        
  28.         db str1
  29.         db str1.f0
  30.         endmod        
  31.        
  32.         db str
  33.         db str.f0
  34.         db str.f1
  35.         db mod.str
  36.         db mod.str.f0
  37.         db mod.str.f1
  38.         db mod.str.f2
  39.  
  40.         ;usage
  41. usestr  str 1,2,3
  42. ;EDITED: seems to work in v1.11 (original comment "TODO: fix structs usage without labels")
  43.         str1 4,5
  44.