tormod wrote:(jedie, maybe we can move the discussion of your python server to another thread, because the problems you are having are not relevant to "normal" users using DriveWire4 and might add confusion here. I am sure it will be a useful alternative once it works though.)
No problem. I would like to discuss
DWLOAD related things here and my DW-Load-Server related things there:
viewtopic.php?f=8&t=4946
But there a Question about the existing "AUTOLOAD.DWL" example file / Dragon Dos binary file specs:
I analyse the existing "AUTOLOAD.DWL" example. Extracted values are:
Code: Select all
File Type: $01
Load Address: $1e01
Length: $025c (dez.: 604 Bytes)
Exec Address: $1e01
If i strip the file with this given length to remove the padding i get this:
Code: Select all
...
0544 31 00 20 34 01 fe b9 4e 22 45 4c 43 48 41 4e 43 1..4...N"ELCHANC
0560 45 22 00 20 3d 02 08 ae 31 2c 31 00 20 50 02 12 E"..=...1,1..P..
0576 85 20 ff 9a cb 22 22 20 81 bc 20 35 33 30 00 20 .....""....530..
0592 59 02 1c 81 bc 20 37 00 00 00 00 00 Y.....7.....
IMHO there are to many $00 at the end, isn't it?
The last code line is:
540 GOTO 7 -> the last code char is "7"==$37
After $37 are 5x $00 but IMHO 3x $00 are enough:
1x $00 -> BASIC line end terminator
2x $00 -> Listing end (Next address)
In
http://dragon32.info/info/binformt.html is this information:
LENGTH is length if DATA block that follows i.e. complete file should be
LENGTH+9 bytes long
So, is the length information in the generated "AUTOLOAD.DWL" is wrong? Or is
http://dragon32.info/info/binformt.html wrong and Dragon Dos binary files has a terminator with 2x $00 extra bytes?!? Or, the likely case: I'm wrong
EDIT: I try to figure out:
Listing: "10 CLS" and requested
DLOAD"SAVE""CLS.BAS"
I get this:
Code: Select all
File Type: $01
Load Address: $1e01
Length: $0008 (dez.: 8 Bytes)
Exec Address: $1e01
Data: 1e 07 00 0a a0 00 00 00
blue: next address
green: line number (=10)
a0: CLS
red: line end + next address
All together are 8 Bytes.
So: The length value in "AUTOLOAD.DWL" is wrong?
@tormod: How do you generate this file?
EDIT2: Seems that i'm right: The origin "AUTOLOAD.DWL" length is $025c (dez.: 604 Bytes) but if i SAVE the AUTOLOAD file, i get $025a (dez.: 602 Bytes) back.