So, the line numbers are now ok, with: https://github.com/jedie/python-code-sn ... af69545baa
Next steps: Test checksum and ASCII Basic.
Search found 656 matches
- Tue Aug 20, 2013 1:16 pm
- Forum: Hints and Tips
- Topic: PyDC converter (was: dragon 32 cassette format ?)
- Replies: 80
- Views: 54154
- Tue Aug 20, 2013 12:26 pm
- Forum: Hints and Tips
- Topic: PyDC converter (was: dragon 32 cassette format ?)
- Replies: 80
- Views: 54154
Re: dragon 32 cassette format ?
Yes, that's the question...robcfg wrote:I don't know how to calculate the line pointers.
Is it a offset + count of all chars/tokens?
- Tue Aug 20, 2013 11:27 am
- Forum: Hints and Tips
- Topic: PyDC converter (was: dragon 32 cassette format ?)
- Replies: 80
- Views: 54154
Re: dragon 32 cassette format ?
Quick and dirty: data = (0x1e,0x1a,0x0,0x1,0x87,0x20,0x22,0x4c,0x49,0x4e,0x45,0x20,0x4e,0x55,0x4d,0x42,0x45,0x52,0x20,0x54,0x45,0x53,0x54,0x22,0x0,0x1e,0x23,0x0,0xa,0x87,0x20,0x31,0x30,0x0,0x1e,0x2d,0x0,0x64,0x87,0x20,0x31,0x30,0x30,0x0,0x1e,0x38,0x3,0xe8,0x87,0x20,0x31,0x30,0x30,0x30,0x0,0x1e,0x44,...
- Tue Aug 20, 2013 11:15 am
- Forum: Hints and Tips
- Topic: PyDC converter (was: dragon 32 cassette format ?)
- Replies: 80
- Views: 54154
Re: dragon 32 cassette format ?
Yes sometimes it's difficult ;) My Problem is that i what to parse it in python and i have split it by 0x00... But that's the wrong idea... I have also "convert" the code from above in a clearer form: 0x1e,0x1a,0x0,0x1,PRINT "LINE NUMBER TEST",0x0, 0x1e,0x23,0x0,0xa,PRINT 10,0x0, 0x1e,0x2d,0x0,0x64,...
- Tue Aug 20, 2013 10:39 am
- Forum: Hints and Tips
- Topic: PyDC converter (was: dragon 32 cassette format ?)
- Replies: 80
- Views: 54154
Re: dragon 32 cassette format ?
word PTR_NEXT_LINE word LINE_NUM byte[] TOKENISED_DATA byte $00 End of line delimiter 'Words' are 16-bit values, two bytes, so the thing is as follows: 0x1e12 Memory address of next line 0x000a Line number 10 ...FOR I = 1 TO 10... 0x0 << End of line delimiter 0x1e29 memory address of the next line ...
- Tue Aug 20, 2013 9:27 am
- Forum: Hints and Tips
- Topic: PyDC converter (was: dragon 32 cassette format ?)
- Replies: 80
- Views: 54154
Re: dragon 32 cassette format ?
Now i try to handle the line numbers in the right way. But no success yet. Test BASIC code: 1 PRINT "LINE NUMBER TEST" 10 PRINT 10 100 PRINT 100 1000 PRINT 10000 32768 PRINT 32768 63999 PRINT "END";63999 This is the raw data block of the code: 0x1e,0x1a,0x0, 0x1 , 0x87 ,0x20,0x22,0x4c,0x49,0x4e,0x45...
- Mon Aug 19, 2013 5:22 pm
- Forum: Hints and Tips
- Topic: Emulate Floppy with a Raspberry Pi ?
- Replies: 22
- Views: 17613
Emulate Floppy with a Raspberry Pi ?
Im not really a hardcore-hardware-hacker... So just a idea: Is it possible to emulate a dragon floppy controler+drive with a Raspberry Pi ? Connect the existing GPIO ports to the cartridge ? Maybe combine with this: http://archive.worldofdragon.org/index.php?title=Dragon_I/O_Cartridge_%28Rink%29 ? I...
- Mon Aug 19, 2013 3:32 pm
- Forum: Hints and Tips
- Topic: PyDC converter (was: dragon 32 cassette format ?)
- Replies: 80
- Views: 54154
Re: dragon 32 cassette format ?
@Sarah: Can you upload your sources somewhere? Maybe it can help me.
And yes, my destination is to create WAV2CAS, CAS2BAS, BAS2CAS and everything with tokenised BASIC <-> ASCII
IMHO the most steps to this have i done, yet.
Missing things are the unpack the meta data, e.g.: file type, checksum...
And yes, my destination is to create WAV2CAS, CAS2BAS, BAS2CAS and everything with tokenised BASIC <-> ASCII
IMHO the most steps to this have i done, yet.
Missing things are the unpack the meta data, e.g.: file type, checksum...
- Mon Aug 19, 2013 2:51 pm
- Forum: Hints and Tips
- Topic: CAS/WAV <-> plain text converter?
- Replies: 2
- Views: 2583
Re: CAS/WAV <-> plain text converter?
This thread is obsolete, see: viewtopic.php?f=8&t=4231
- Sun Aug 18, 2013 6:42 pm
- Forum: Hints and Tips
- Topic: PyDC converter (was: dragon 32 cassette format ?)
- Replies: 80
- Views: 54154
Re: dragon 32 cassette format ?
Have done some small speed improvement.
Current code here: https://github.com/jedie/python-code-sn ... _decode.py
Any help to unpack the file format and checksum stuff?
Current code here: https://github.com/jedie/python-code-sn ... _decode.py
Any help to unpack the file format and checksum stuff?