?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1.         STRUCT BIN_FILE_MAP, 256
  2. value1      BYTE
  3. value2      WORD
  4.         ENDS
  5.  
  6.         ORG  0x8000
  7. binData BIN_FILE_MAP = $        ; set up label values only (no bytes)
  8.         ; INCBIN "some_data.bin"  ; load the bytes from file instead
  9.         INCBIN "st_usage_example.asm"   ; include the source itself to not error out
  10.  
  11.         ; using the data through struct definition
  12.         ld  a,(binData.value1)
  13.         ld  hl,(binData.value2)
  14.