Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 2345

programming • Re: Writing to Screen Memory in Mode 135

$
0
0
Yes, however if you add

*FX3,4
PRINT “Hello”

To OBBS somewhere after client connection, Hello will appear on both the client (connected via serial) and the host. Likewise using *fx3,23 will send what ever you're outputting to the client (as expected) but also the host. Which I think is why the original code was poking the screen memory (in mode 7) to display only on the host screen rather than the usual method.
How? *FX3,4 specifically says do *NOT* send output to serial. OBBS must be bypassing the output stream control and sending stuff to the serial port itself *as* *well* *as* sending to OSWRCH. When happens if you use *FX3,1? Do you get everything sent to the serial output twice?

Fundamentally, a serial terminal is this:
REM > SimpleTerm
REM Simplest possible BBC serial terminal program
:
ON ERROR OSCLI "FX2":OSCLI "FX3":REPORT:PRINT:END
*FX229,1
*FX2,2
REPEAT
IF ADVAL(-1):OSCLI "FX3,3":VDU GET:*FX3
IF ADVAL(-2):OSCLI "FX2,1":VDU GET:*FX2,2
UNTIL FALSE


anything else is bells and whistles.

Statistics: Posted by jgharston — Thu Oct 10, 2024 11:21 pm



Viewing all articles
Browse latest Browse all 2345

Trending Articles