?login_element?

Subversion Repositories NedoOS

Rev

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

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