Search found 655 matches

by jedie
Fri Aug 30, 2013 8:26 am
Forum: Dragon General
Topic: Drivewire Adapter for Dragon - DIY
Replies: 19
Views: 16886

Re: Drivewire Adapter for Dragon - DIY

my drivewire adapter from Tormod arrived since a few days... But i haven't spend time to test it, yet :oops:
by jedie
Thu Aug 29, 2013 2:37 pm
Forum: Dragon General
Topic: Dragon emulator written in Python ???
Replies: 106
Views: 83854

Re: Dragon emulator written in Python ???

I came to the conclusion that it would be better to contribute to the origin "applepy" project, instead of fork and change it. Therefore, I make a fresh start here: https://github.com/jedie/PyEmulator/ I have started to split https://github.com/jtauber/applepy into a Apple 2 specific part and a gene...
by jedie
Wed Aug 28, 2013 2:38 pm
Forum: Hints and Tips
Topic: BASIC and strings
Replies: 16
Views: 11758

Re: BASIC and strings

Have you got around how the dragon's basic generates the line pointers? Otherwise, you can only save ascii and be able to load it again. Which isn't bad anyway... No, i don't :( My Idea: A offset + length of previous line? But a fixed offset makes no sense, because it's too "restricted" :?: I will ...
by jedie
Wed Aug 28, 2013 1:01 pm
Forum: Hints and Tips
Topic: BASIC and strings
Replies: 16
Views: 11758

BASIC and strings

Where can i find information about quotes, double quotes, escape in BASIC code? In Python this is possible: print "normal" print 'normal' print 'foo " bar' print "foo ' bar" print "foo \" bar" print """foo " bar""" And a few more. The output is: normal normal foo " bar foo ' bar foo " bar foo " bar ...
by jedie
Wed Aug 28, 2013 12:23 pm
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48413

Re: dragon 32 cassette format ?

That's clear. What not clear is the AND 0xFF thing. ...some min later... Ah! for i in xrange(250,265): print i, i & 0xff output: 250 250 251 251 252 252 253 253 254 254 255 255 256 0 257 1 258 2 259 3 260 4 261 5 262 6 263 7 264 8 It makes that the value starts from 0 after arrive 255... OK, then it...
by jedie
Wed Aug 28, 2013 11:47 am
Forum: Dragon General
Topic: Dragon emulator written in Python ???
Replies: 106
Views: 83854

Re: Dragon emulator written in Python ???

Python is fast enough for the most problems. it is nevertheless too slow, you can get speed if you use special binary libraries for some parts, e.g.: numpy Maybe a solution is PyPy with JIT-Compiler to get more speed. Python is very Backwards-/Forwards incompatible. The biggest break is v2.x to v3.x...
by jedie
Wed Aug 28, 2013 11:07 am
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48413

Re: dragon 32 cassette format ?

For every block you have to sum all bytes from the block, plus the block type number plus the size of the block and do an AND 0xFF. Then you check the calculated number against the checksum byte (that is, the last before the trailing 0x55), and if they are the same, theoretically the block is Ok. D...
by jedie
Wed Aug 28, 2013 7:46 am
Forum: Dragon General
Topic: Dragon emulator written in Python ???
Replies: 106
Views: 83854

Re: Dragon emulator written in Python ???

Thanks! Maybe the people from there would like the same ;)
by jedie
Tue Aug 27, 2013 10:02 pm
Forum: Dragon General
Topic: Dragon emulator written in Python ???
Replies: 106
Views: 83854

Dragon emulator written in Python ???

I found the Apple ][ Emulator written in Python here: https://github.com/jtauber/applepy I looked into the source code and wondering how "simple" it looks. (compared with other emulator code) A interesting video from the author is here: http://www.youtube.com/watch?v=EhK5JNx0irA I forked the code an...
by jedie
Tue Aug 27, 2013 4:18 pm
Forum: Hints and Tips
Topic: PyDC converter (was: dragon 32 cassette format ?)
Replies: 80
Views: 48413

Re: dragon 32 cassette format ?

Is on my TODO ;) I add a command line interface with https://github.com/jedie/PyDragon32/commit/1a2426eb76b4eb2575b49a67a8c89d14c28e036f : usage: PyDC_cli.py [-h] [-v] [--verbosity {0,10,20,30,40,50}] [--logfile {0,10,20,30,40,50}] [--hz_variation HZ_VARIATION] [--min_volume_ratio MIN_VOLUME_RATIO] ...