Login

Subversion Repositories NedoOS

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

# file opened: autostart_warning.asm
 1    0000              ;; separate test using the ordinary test-runner script and listing file to verify the warnings situation
 2    0000              ;; (binary wise this is not testing anything, the binary tests are in savetrd**.asm tests)
 3    0000                  DEVICE ZXSPECTRUM128
 4    0000                  EMPTYTRD "autostart_warning.trd"
 5    0000                  ; warning about "autostart" for BASIC only
 6    0000                  SAVETRD "autostart_warning.trd","ok.B",$C001,$100,$1234
autostart_warning.asm(7): warning: zx.trdimage_add_file: autostart value is BASIC program line number (0..9999) (in lua use -1 otherwise).
 7    0000                  SAVETRD "autostart_warning.trd","warn.C",$C001,$100,$1234
autostart_warning.asm(8): warning: zx.trdimage_add_file: autostart value is BASIC program line number (0..9999) (in lua use -1 otherwise).
 8    0000                  SAVETRD "autostart_warning.trd","warn2.B",$C001,$100,10000  ; warning because max line is 9999
 9    0000                  ; other errors
autostart_warning.asm(10): error: zx.trdimage_add_file: length must be in 0001..FF00 range: SAVETRD "autostart_warning.trd","err1.C",$C001,0        
10    0000                  SAVETRD "autostart_warning.trd","err1.C",$C001,0        ; zero length
autostart_warning.asm(11): error: zx.trdimage_add_file: length must be in 0001..FF00 range: SAVETRD "autostart_warning.trd","err2.C",0,$FF01        
11    0000                  SAVETRD "autostart_warning.trd","err2.C",0,$FF01        ; 0xFF01 length (length in sectors is 0x100+ = error)
12    0000                  SAVETRD "autostart_warning.trd","ok2.C",$C000,$4000     ; OK: 0xC000+0x4000 = 0x10000
autostart_warning.asm(13): error: zx.trdimage_add_file: provided start+length will run out of device memory: SAVETRD "autostart_warning.trd","err3.C",$C000,$4001    
13    0000                  SAVETRD "autostart_warning.trd","err3.C",$C000,$4001    ; err: 0xC000+0x4001 = 0x10001
14    0000                  SAVETRD "autostart_warning.trd","ok3.C",0,$FF00         ; OK: FF00 length = just fits (last one)
autostart_warning.asm(15): error: zx.trdimage_add_file: sector length over 0xFF max: SAVETRD "autostart_warning.trd","err4.B",0,$FEFD,$1234  
15    0000                  SAVETRD "autostart_warning.trd","err4.B",0,$FEFD,$1234  ; err: FEFD length + autostart = too many sectors (0x100+)
autostart_warning.asm(16): warning: zx.trdimage_add_file: invalid file extension, TRDOS extensions are B, C, D and #.: warn.X
16    0000                  SAVETRD "autostart_warning.trd","warn.X",1,2            ; warning about invalid extension
17    0000
# file closed: autostart_warning.asm

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