Search found 655 matches

by jedie
Tue Aug 20, 2013 12:26 pm
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48405

Re: dragon 32 cassette format ?

robcfg wrote:I don't know how to calculate the line pointers.
Yes, that's the question...

Is it a offset + count of all chars/tokens?
by jedie
Tue Aug 20, 2013 11:27 am
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48405

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,...
by jedie
Tue Aug 20, 2013 11:15 am
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48405

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,...
by jedie
Tue Aug 20, 2013 10:39 am
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48405

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 ...
by jedie
Tue Aug 20, 2013 9:27 am
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48405

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...
by jedie
Mon Aug 19, 2013 5:22 pm
Forum: Hints and Tips
Topic: Emulate Floppy with a Raspberry Pi ?
Replies: 22
Views: 15928

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...
by jedie
Mon Aug 19, 2013 3:32 pm
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48405

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...
by jedie
Mon Aug 19, 2013 2:51 pm
Forum: Hints and Tips
Topic: CAS/WAV <-> plain text converter?
Replies: 2
Views: 2324

Re: CAS/WAV <-> plain text converter?

This thread is obsolete, see: viewtopic.php?f=8&t=4231
by jedie
Sun Aug 18, 2013 6:42 pm
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48405

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?
by jedie
Sun Aug 18, 2013 11:08 am
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48405

Re: dragon 32 cassette format ?

Thx for info. I have implement this, now, here: https://github.com/jedie/python-code-snippets/commit/57f0e3c92b39faddead084c3baa8f6eb054ec21b#L1R511 So the complete code looks now like this: 10 PMODE 4,1:SCREEN 1,1:PCLS 5:COLOR 0,5 20 FOR I = 1 TO 1000 30 X=X+L*SIN(R):Y=Y+L*COS(R) 40 IF X<-128 OR X>...