Search found 655 matches

by jedie
Sat Aug 17, 2013 11:40 pm
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48379

Re: dragon 32 cassette format ?

Thanks! Good to know. Currently only tokenised BASIC tested. But BASIC in ASCII should not be a big problem ;) I have tests some files form: http://archive.worldofdragon.org/archive/index.php?dir=Tapes/Dragon/wav/ The file "Dragon Data Ltd - Examples from the Manual - 39~58 [run].zip" i get this cod...
by jedie
Sat Aug 17, 2013 11:06 pm
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48379

Re: dragon 32 cassette format ?

Thanks! Why is there the "Memory address of next line" information? It's useless to store/restore it on tape, isn't it? Other question: from http://www.onastick.clara.net/cosio.htm : 5.2 A file ID byte where: 00=BASIC program 01=Data file 03=Binary file 5.3 An ASCII flag where: 00=Binary file FF=ASC...
by jedie
Sat Aug 17, 2013 10:47 pm
Forum: Discuss This Site
Topic: Add link to Wiki in forum...
Replies: 4
Views: 4570

Re: Add link to Wiki in forum...

Also the "archive" -> http://archive.worldofdragon.org/archive/index.php should be have links to each other.

Maybe: Add a page header looks like TABs...
by jedie
Sat Aug 17, 2013 10:45 pm
Forum: Discuss This Site
Topic: Add link to Wiki in forum...
Replies: 4
Views: 4570

Add link to Wiki in forum...

Here in the Forum is no link "back" to the Wiki -> http://archive.worldofdragon.org/index. ... =Main_Page

IMHO the Forum and Wiki should have links to each other, somewhere in the head of the page.
by jedie
Sat Aug 17, 2013 10:17 pm
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48379

Re: dragon 32 cassette format ?

I found the format of tokenized Basic here . That helps. But i didn't bring all together. Here the same data from above: 0x1e 0x12 << memory address of the next line ? 0x0 << start new line of code 0xa == Line Number 10 ...FOR I = 1 TO 10... 0x0 << End of line delimiter 0x1e 0x29 << memory address ...
by jedie
Sat Aug 17, 2013 9:26 pm
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48379

Re: dragon 32 cassette format ?

Hm. The "Line Number" can't be exist only in one byte. Oserwise the line number is limited to <256 isn't it?
by jedie
Sat Aug 17, 2013 8:28 pm
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48379

Re: dragon 32 cassette format ?

The question is now, how is the basic code formatted? The raw data is: 01111000 0x1e 30 '\x1e' 01001000 0x12 18 '\x12' 00000000 0x0 0 '\x00' 01010000 0xa 10 '\n' 00000001 0x80 128 ' FOR ' 00000100 0x20 32 ' ' 10010010 0x49 73 'I' 00000100 0x20 32 ' ' 11010011 0xcb 203 '=' 00000100 0x20 32 ' ' 100011...
by jedie
Sat Aug 17, 2013 7:53 pm
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48379

Re: dragon 32 cassette format ?

What I do, and what I think you're doing now, is follow the 0x55 bytes until you find a different value. If the next byte is 0x3C then everything is ok and that's a block start. That is what i doning now and it seems to work good, see: https://github.com/jedie/python-code-snippets/commit/f9dfd6c548...
by jedie
Fri Aug 16, 2013 4:50 pm
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48379

Re: dragon 32 cassette format ?

Next step: I catch the sync byte with: def goto_next_block(bit_list, debug=False): """ >>> bits = ( ... "10101010" # 0x55 leader byte ... "00111100" # 0x3C sync byte ... "00010010" # 0x48 'H' ... ) >>> bit_list = [int(i) for i in bits] >>> bit_list = goto_next_block(bit_list) >>> bit_list [0, 0, 0, ...
by jedie
Fri Aug 16, 2013 3:31 pm
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48379

Re: dragon 32 cassette format ?

Current state is on github. Last commit is: https://github.com/jedie/python-code-snippets/commit/4f930a98aae53fa8bdeaf6ec647e5d9b258cea6d I have insert a test, if i can found on binary level this: "HELLO WORLD!" This exists in both WAV files (also on github downloadable!) So i think the WAVE2bits de...