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

programming • Re: BFont routine for VDU and Binary character sets

$
0
0
I don't know the BFont program, but in general...


https://beebwiki.mdfs.net/OSBYTE_%2614 is worth a read.

By default, on a B (it's different on a Master, or if you have a 2nd processor, or...) only characters &80-&9F are redefinable. To change others you need to use *FX20 to "explode" the character set, which allocates memory at OSHWM. In a BASIC program this means PAGE needs to be moved up. So you need to be careful; move PAGE before running *FX20.

So you might have a "3 stage" loading process

Code:

PAGE=PAGE+&500CHAIN "step2"
Now step 2 could be

Code:

*FX20 5VDU 23,....<redefine all your characters>...CHAIN "step3"
And step3 can be your main program.

If you're getting a Bad Program error then it's likely your PAGE isn't high enough or you're loading too much data into memory.

Statistics: Posted by sweh — Sun Jan 26, 2025 10:48 pm



Viewing all articles
Browse latest Browse all 2534

Trending Articles