08-15-2012, 01:27 AM
I was programming the same game and the speccy resets, is there a way of telling which line it crashes on?
(except commenting out loads of lines)
(except commenting out loads of lines)
Spectrum resets
|
08-15-2012, 01:27 AM
I was programming the same game and the speccy resets, is there a way of telling which line it crashes on?
(except commenting out loads of lines)
08-15-2012, 09:58 AM
slenkar Wrote:I was programming the same game and the speccy resets, is there a way of telling which line it crashes on?It the spectrum resets there's very little to do at the moment (I was thinking on an emulator). However, use zxb --help and look for memory checks, array checks and break on and others. Usually many error are reported using the ZX Spectrum ROM Error routine. That is, if you see something like: 345:0 Subscript out of range, sometimes it refers to the REAL 345 line (I can't recall if I implemented this really). Anyway use this only for debugging: it will slow down your program and takes more memory.
08-15-2012, 07:16 PM
I often end up trackng issues with
asm DI HALT end asm As a "stop here" code, then use a disassembler to find out what's going on.
08-16-2012, 09:34 PM
It was too much recursion
08-17-2012, 07:01 AM
You can start your program in a higher memory address. The stack is always below 32768 (well, I *suppose* CLEAR does that :?.
Anyway there are cases where recursion calls can be tail-optimized (e.g. transforming them into a GOTO). This will be implemented in the future.
08-17-2012, 09:16 PM
it was my mistake, infinite recursion :oops:
|
« Next Oldest | Next Newest »
|