When you write code using CC65, it defaults to switching you to mixed-case mode.
I'm looking for methods to switch back to uppercase/PETSCII mode.
On a C-64, I could use poke(53272,21), but the pokes are different on the X-16, and I haven't found this one documented yet. If I was any good with machine language, I suppose I could poke (heh) around in the monitor and see if I could find that routine in the kernal, but I'm not.
However, I'd rather use the bits in conio.h, but conio seems to be using screen display codes rather than PETSCII values, that '142' with 'cprintf' gives me a reverse 'N'.
When you write code using CC65, it defaults to switching you to mixed-case mode.
I'm looking for methods to switch back to uppercase/PETSCII mode.
On a C-64, I could use poke(53272,21), but the pokes are different on the X-16, and I haven't found this one documented yet. If I was any good with machine language, I suppose I could poke (heh) around in the monitor and see if I could find that routine in the kernal, but I'm not.
So far, the best I've found is to:
However, I'd rather use the bits in conio.h, but conio seems to be using screen display codes rather than PETSCII values, that '142' with 'cprintf' gives me a reverse 'N'.
I've tried inline assembly (cribbed slightly from SlithyMatt's Hello cc65 tutorial):
But that didn't seem to do anything.
I suppose I could include both conio.h and stdio.h, but if it can be done w/o stdio.h, I'd save that much more RAM/code space.
Any other suggestions?
Share this post
Link to post
Share on other sites