Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
char pointer bend to another address
#4
To change only the character "K" I suggest to use UDG (User Defined Graphics).
If you compile with the --sinclair option, the compiler will enable several features at once, to maximize compatibility with Sinclair's ROM BASIC.
Then you can POKE at USR "k" + i, using READ and DATA:
Code:
FOR i = 0 TO 7
   READ a
   POKE USR "k" + i, a
NEXT i

REM PRINT the UDG "k"

PRINT "\K \K"

DATA 85, 170, 85, 170, 85, 170, 85, 170

Please read here about using UDGs:
https://zxbasic.readthedocs.io/en/docs/syntax/
---
Boriel
Reply


Messages In This Thread
RE: char pointer bend to another address - by boriel - 12-07-2024, 04:03 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)