?login_element?

Subversion Repositories NedoOS

Rev

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

# file opened: incbin.asm
 1    0000                  ;; the included incbin/incbin.bin is fake file (doesn't have correct checksums/etc)
 2    0000                  ; its payload is actually ASCII text, readable by text editor
 3    0000                  OUTPUT "incbin.bin"
 4    0000
 5    0000                  ; create copy of original 256B data by using 3 parts
 6    0000                  INCBIN "incbin/incbin.bin",,128
 7    0080                  INCBIN "incbin/incbin.bin",128,64
 8    00C0                  INCBIN "incbin/incbin.bin",192
 9    0100                  ; just read whole 256B data in one go
10    0100                  INCBIN "incbin/incbin.bin"
11    0200                  ; another composed 256B copy (having extra spaces everywhere to exercise parser)
12    0200                  INCBIN "incbin/incbin.bin"  ,  ,  128
13    0280                  INCBIN "incbin/incbin.bin"  ,  128  ,  64
14    02C0                  INCBIN "incbin/incbin.bin"  ,  192
15    0300                  ; = 3x256 = 768B output so far
16    0300
17    0300                  ; Exercise the new negative offset/length functionality
18    0300                  INCBIN "incbin/incbin.bin", -256, -64   ; first 192B
19    03C0                  INCBIN "incbin/incbin.bin", -64         ; remaining 64B
20    0400                  ; = 4x256 = 1024B output so far
21    0400                  OUTEND
22    0400
23    0400                  ; Exercise (some) error/warning states of INCBIN
incbin.asm(24): warning: include data: requested to include no data (length=0)
24    0400                  INCBIN "incbin/incbin.bin",,0           ; warning length=0
25    0400                  ;INCBIN "incbin/incbin.bin",,65537       ; warning max 64kiB - too short file to test this
26    0400                  // rest of errors are FATAL type, PITA to test
27    0400
incbin.asm(28): error: [INCBIN] Syntax error in <offset>: INCBIN "incbin/incbin.bin",
28    0400                  INCBIN "incbin/incbin.bin",
incbin.asm(29): error: [INCBIN] Syntax error in <length>: INCBIN "incbin/incbin.bin",,
29    0400                  INCBIN "incbin/incbin.bin",,
incbin.asm(30): error: [INCBIN] Syntax error in <offset>: INCBIN "incbin/incbin.bin",+
30    0400                  INCBIN "incbin/incbin.bin",+
incbin.asm(31): error: [INCBIN] Syntax error in <length>: INCBIN "incbin/incbin.bin",0,
31    0400                  INCBIN "incbin/incbin.bin",0,
incbin.asm(32): error: [INCBIN] Syntax error in <length>: INCBIN "incbin/incbin.bin",0,+
32    0400                  INCBIN "incbin/incbin.bin",0,+
33    0400
# file closed: incbin.asm

Value    Label
------ - -----------------------------------------------------------