Wow. Than i'm far away from that.
But ok, i didn't do any optimizing and have many logging action inserted... there is still a lot air
Search found 656 matches
- Fri Oct 25, 2013 12:57 pm
- Forum: Hints and Tips
- Topic: CPU perfomance...
- Replies: 6
- Views: 3473
- Thu Oct 24, 2013 6:06 pm
- Forum: Hints and Tips
- Topic: CPU perfomance...
- Replies: 6
- Views: 3473
CPU perfomance...
How many CPU cycles does the 6809 at normal running frequency made in one second?
Currently, unoptimized DragonPy runs around 55000 cycles/sec.
Currently, unoptimized DragonPy runs around 55000 cycles/sec.
- Thu Oct 24, 2013 5:14 pm
- Forum: Hints and Tips
- Topic: Howto try small machine code programs in BASIC ?
- Replies: 53
- Views: 26786
Re: Howto try small machine code programs in BASIC ?
The specs say that TST affected NZ and that V set to 0: Set the N (negative) and Z (zero) bits according to the contents of accumulator A or B, and clear the V (overflow) bit. "HNZVC": -aa0- Somewhere i found this: The MC6800 processor clears the C (carry) bit. That's confusing. C should be not affe...
- Thu Oct 24, 2013 2:52 pm
- Forum: Hints and Tips
- Topic: Howto try small machine code programs in BASIC ?
- Replies: 53
- Views: 26786
Re: Howto try small machine code programs in BASIC ?
Next test program is with SUBA: https://github.com/jedie/PyDragon32/commit/b61b564cdf2a6ac579f4bdc54ecb760dd718b33a Results: N is set if A between 128 - 255 Z is only set if A == 0 C is set if SUB $00 to $ff V ist set if SUB $80 to $7f H is never set. The spec says it's "undefined". What does it exa...
- Thu Oct 24, 2013 10:28 am
- Forum: Hints and Tips
- Topic: Howto try small machine code programs in BASIC ?
- Replies: 53
- Views: 26786
Re: Howto try small machine code programs in BASIC ?
H set if A == 16,32,48,64,80,96,112,128,144,160,176,192,208,224,240,0 N is set if A between 128 - 255 Z is only set if A == 0 V is only set if A == 128 C is only set on A == 0 (in the 256 iteration where A wrap around: 0xff+1 = 0x0) With this information i have now the first working CC unittest tes...
- Thu Oct 24, 2013 10:04 am
- Forum: Hints and Tips
- Topic: Howto try small machine code programs in BASIC ?
- Replies: 53
- Views: 26786
Re: Howto try small machine code programs in BASIC ?
Sorry for my long line :oops: Thanks for your patience :) It's just that a signed 2's complement 8-bit integer can hold values -128 to +127. If an addition's result exceeds that range, that's an overflow. The sign is a separate issue (and indeed, in 2's complement 0 is considered positive). OK, i th...
- Tue Oct 22, 2013 5:25 pm
- Forum: Dragon General
- Topic: Dragon emulator written in Python ???
- Replies: 106
- Views: 93872
Re: Dragon emulator written in Python ???
I adapted now the XRoar CC routines with: https://github.com/jedie/DragonPy/commi ... 77742423c2
OM ERROR is away. But unuseable anyway
But maybe my python translation it's not enough.
OM ERROR is away. But unuseable anyway
But maybe my python translation it's not enough.
- Tue Oct 22, 2013 1:54 pm
- Forum: Hints and Tips
- Topic: PyDC converter (was: dragon 32 cassette format ?)
- Replies: 80
- Views: 54311
Re: PyDC converter (was: dragon 32 cassette format ?)
I have made changes. So that a ASCII files has GAPS and 255x 0x55 are yield.
But still get a DS ERROR after the last data block
Log output of PyDC is here: https://gist.github.com/jedie/7100207
But still get a DS ERROR after the last data block
Log output of PyDC is here: https://gist.github.com/jedie/7100207
- Tue Oct 22, 2013 12:54 pm
- Forum: Hints and Tips
- Topic: PyDC converter (was: dragon 32 cassette format ?)
- Replies: 80
- Views: 54311
Re: PyDC converter (was: dragon 32 cassette format ?)
I've been taking a look, and you're missing the 0x55 byte at the end of the file, and also, if you load the test file into xroar and csave it to a new cas file, you'll find that the file generated by xroar is contiguous where the one generated by your program has the full 0x55 leads for every block...
- Tue Oct 22, 2013 10:12 am
- Forum: Hints and Tips
- Topic: BASIC: byte value to bits...
- Replies: 15
- Views: 11652
Re: BASIC: byte value to bits...
Now i make it in this form: 223 T = CC 224 B7$=".":IF T AND 128 THEN B7$="E" 225 B6$=".":IF T AND 64 THEN B6$="F" 226 B5$=".":IF T AND 32 THEN B5$="H" 227 B4$=".":IF T AND 16 THEN B4$="I" 228 B3$=".":IF T AND 8 THEN B3$="N" 229 B2$=".":IF T AND 4 THEN B2$="Z" 230 B1$=".":IF T AND 2 THEN B1$="V" 231 ...