Hello Ciaran,
I'm late, as usual ...
I have tried a bit you new 6309 emulation for Dragon.
These are my very first results:
1) The emulation reflects perfectly the real problem in native mode if you dare to use PLAY commands, for instance:
Code: Select all
100 FORI=512TO515:READA:POKEI,A:NEXT
110 EXEC512
120 DATA 17,61,0,57
130 CLS5:PRINT"NOW IN COMPATIBILITY MODE"
140 PRINT:PRINT:PRINT"EVERYTHING SHOULD BE ALRIGHT"
150 FORK=1TO5
160 FORI=1TO10
170 SOUND100+I,1
180 NEXT
190 PLAY"O2L16CDEFGABO3CDEFGABO4C"
200 NEXT K
210 IFINKEY$<>"Y"THEN210
220 CLS7:PRINT"NOW IN NATIVE MODE"
230 PRINT:PRINT:PRINT"PROBLEMS WILL ARISE WITH PLAY"
240 FORI=512TO515:READA:POKEI,A:NEXT
250 EXEC512
260 DATA 17,61,1,57
270 FORK=1TO5
280 FORI=1TO10
290 SOUND100+I,1
300 NEXT
310 PLAY"O2L16CDEFGABO3CDEFGABO4C"
320 NEXT K
This efectively demonstrates that in emulation mode PLAY gives no problems but in native mode it does, due to the two extra registers added to the stack.
2) Surprisingly, if you just use this piece of code, after having started an emulation with disk enabled and loading the program from disk:
Code: Select all
100 CLEAR200,20000
110 FORI=512TO515:READA:POKE20000+I,A:NEXT
120 EXEC20512
130 DATA 17,61,1,57
140 FORK=1TO100:SOUNDK+100,1:NEXT
When program ends you can work in Basic as usual but ... you will get no answer if you type DIR, it just hangs up! (I'm using XRoar v0.29v1)
If before typing DIR you first change the basic program so that it takes you back to emulation mode, the disk comes back to life without problems!!
By the way, lately I'm having problems everytime I start an XRoar session, despite I relay on default parameters or if I force it with "-disk-write-back " it just doesn't save any changes / saves I do to disk, so when I start XROAR again and load the disk image, I discover that I have lost all of my last savings!
I must press everytime I start XROAR the keys CTRL + SHIFT + 5 to ensure drive 1 will be backed up!
I am planning to test the patches to solve the play problems (by Steve / Zephyr) both in normal mode and in 64k mode
Hope to come back soon with more tests done.
Best regards
Pere