Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
char pointer bend to another address
#10
hello, her is one error :

error is : Undeclared array " graphics_data"

thanks
greeting

----------------------
DIM chars_ptr As UInteger AT 23606: REM declares a variable mapped to CHARS
DIM original_value As Uinteger

REM declare 2 characters (8 bytes each) , graphic_data(15) = 0 to 15 is 16 byte
DIM graphic_data(15) => { 254, 0, 0, 254,255,255,255,255,253, 0, 0, 253,0,0,0,0}

original_value = chars_ptr: REM save original value, which should be 15360
>>>>>>> chars_ptr = @graphics_data(0) - 256: REM new position of the 1st char minus 256  : error

PRINT PAPER 1; INK 6;" ": REM printing a space now prints the 1st character of the new charset

chars_ptr = original_value : REM restore ROM value to use normal charset font
PRINT PAPER 1; INK 6; " ": REM should print a SPACE now
-------------------------------------
Reply


Messages In This Thread
RE: char pointer bend to another address - by funkheld - 12-13-2024, 10:27 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)