Closed kborowinski closed 4 years ago
Please try the new version: https://github.com/maziac/DeZog/releases/tag/0.12.2
(Could you maybe also try the new internal Z80 simulator, "remoteType": "zxsim")
Yep, the remote debugging with ZEsarUX works again on 0.12.2!
I did try the "zxsim" debugging. The simulator starts, runs the z80 code for a bit but then stops executing the code (the debugging is still running and there is no error). When you pause the debugging then disassembly show some random location im memory (first ROM page address space) with nops:
Fine to hear.
Is this a ZX Next program? The simulator (currently) does not support Z80N instructions or ZX Next registers.
Nope it's not. I've made sure to run regular Z80 version.
Can you share the code (or part of it) with me?
Try to debug following code using "zxsim":
;SjASMPlus
ORG $8000
di
ld (restoreStack+1),sp
ld sp,$7fff
ei
xor a
1 ld hl,$4000
ld de,$4001
ld bc,$1800
ld (hl),a
ldir
ld bc,$2ff
ld (hl),$38
ldir
dec a
jr nz,1B
di
restoreStack:
ld sp,0
ei
ret
OK. Although it is a little slow this works fine for me.
What is the problem?
That's strange. It does not work on mine computer. There you have full assembly listing. Maybe it has something to do with SNA snapshot? When I change DEVICE type to ZXPSECTRUM48 it does not work at all.
;SjASMPlus
DEVICE ZXSPECTRUM128
ORG $8000
main:
di
ld (restoreStack+1),sp
ld sp,$7fff
ei
xor a
1 ld hl,$4000
ld de,$4001
ld bc,$1800
ld (hl),a
ldir
ld bc,$2ff
ld (hl),$38
ldir
dec a
jr nz,1B
di
restoreStack:
ld sp,0
ei
ret
SAVESNA "../../emulators/unreal/qsave1.sna", main
DEVICE ZXSPECTRUM128:
DEVICE ZXSPECTRUM48:
Thanks to your full listing I could reproduce the problem and fix it here: https://github.com/maziac/DeZog/releases/tag/0.12.3
The problem was that the IM register was not taken from the SNA file but set to 2 always. The interrupt kicked in during LDIR and was going nowhere.
Could you please verify that it is working for you, so I can close this issue.
Yes, it's working now. Thanks!
Describe the bug Remote debugging does not work at all with ZEsarUX and DeZog 0.12.0. It works as expected on DeZog 0.11.0. As per instruction in 0.12.0 release I've added "remoteType": "zrcp" to launch.json
To Reproduce Start ZEsarUX Launch debugging from VSC Nothing happens i.e. no error, no output in debug console
Version etc. (please complete the following information):
Additional context Please attach your launch.json file.