I have QemuLator 3.3 installed, with JS ROM. On that system, POKE 98403,2 disables the screen. POKE 98403,0 re-enables the screen (OK, you have to type it blind but it works)Andrew wrote:Poke 98403,2 disables the screen ... but it never gets enabled againtofro wrote: Well, from what you describe, it's excactly behaving as it should.
98403 (or $18063) is the QL's display control register. Bit 1 (the value 2) blanks the display, bit 3 (value 8) switches between a MODE 4 and MODE 8 screen, while value 0 switches back to MODE 4 and an enabled display. It's very unlikely these POKEs would work on anything but a real QL or a true QL emulator. It's also very likely that what you describe as a crash is actually simply a disabled display.
I thought it should work on QEmulator
Well, back to digging - it might be a problem in other part of the code ...
Where I do run into a problem is POKE 98403,8 when the emulator is in mode 4, followed by a MODE 8 command, at that point keyboard response stops (although a ctrl-space will still print Not Complete' to screen).
The POKE command only seems to change the hardware mode - QDOS doesn't realise the screen mode has changed and continues to write to it as though it's still in the other mode.
Probably easier to just do away with that poke, Andrei, and let the screen flash etc as the program changes modes with regular MODE commands. At least until debugging is finished.