This model has already some customisation in z88dk, I've put in a primitive implementation of the low resolution graphics and an even more crappy clock() function.
The floppy disk format and the generic console were already available.
The standard floating point arithmetic functions don't work on it, I noticed the MBF32 version does, so I'm forcing it in.
Regnecentralen RC-700
Re: Regnecentralen RC-700
Thank you, so that will be 160x75 resolution.
I have noticed that the first plot() call seems to change the screen mode, using inverse colours (brown on ochre). Can this mode be somehow activated programatically when the program starts? I've tried switching to screen mode 1, but that had no effect.
And is text output already supported in that mode? I'm getting only broken characters, and providing an external font with e.g. -pragma-redirect:CRT_FONT=_font_8x8_bbc_system did not help.
Re: Regnecentralen RC-700
For some reason I didn't implement this mode - my notes say 7x11 and taking up a screen character. I've just worked out why, so writing it down so I don't have to figure it out again....
Looking at an emulator source it looks like we can set the semigraphics mode once per line (so x resolution drops). Or you can mix it on a per character basis (but losing resolution for each switch). In semigraphics mode it looks like upper case characters are available.
There's a nice get out with the semigraphics symbols being held in RAM, and there is a mechanism to write to them.
To get the best usability, I think we ought to have a custom font (with the expected ASCII characters) and have 0-1f code points as 2x2 graphics/other handy glyphs. Having gone through the pain of a compressing a similar dynamic attribute mechanism on the pc88 I don't think attempting to mix is too sensible.
Looking at an emulator source it looks like we can set the semigraphics mode once per line (so x resolution drops). Or you can mix it on a per character basis (but losing resolution for each switch). In semigraphics mode it looks like upper case characters are available.
There's a nice get out with the semigraphics symbols being held in RAM, and there is a mechanism to write to them.
To get the best usability, I think we ought to have a custom font (with the expected ASCII characters) and have 0-1f code points as 2x2 graphics/other handy glyphs. Having gone through the pain of a compressing a similar dynamic attribute mechanism on the pc88 I don't think attempting to mix is too sensible.
Re: Regnecentralen RC-700
To enter in graphics mode I'm just printing the control characters to wipe the display plus the special character entering in graphics mode.
I got the control character code experimentally, there must be a way to enter in reverse graphics mode as well.
The picture is generated by poking the values directly on the display memory, but if the "enter graphics" key is hit, then the text mode is restored. Other bios generated conditions might restore the text mode as well , like the text scrolling.
Thus I've forced a workaround in the graphics engine (in swapgfxbk1) HOMEing the cursor and printing the "enter graphics" code again and again
It's not clean but it's a step further and allows a rather high resolution, but the block on the top left corner
I got the control character code experimentally, there must be a way to enter in reverse graphics mode as well.
The picture is generated by poking the values directly on the display memory, but if the "enter graphics" key is hit, then the text mode is restored. Other bios generated conditions might restore the text mode as well , like the text scrolling.
Thus I've forced a workaround in the graphics engine (in swapgfxbk1) HOMEing the cursor and printing the "enter graphics" code again and again
It's not clean but it's a step further and allows a rather high resolution, but the block on the top left corner