The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UDG definition bug (*solved*)
#3
I'm afraid this is not the problem. I typed the following code:
Code:
#pragma explicit = false DIM myudg(8 * 10) As Ubyte : REM 10 UDG chars POKE Uinteger 23676, @myudg(0) : REM Points 23676 to Address of myudg array 1st element FOR n=0 TO 7: POKE USR "A"+n,255: NEXT n FOR n=0 TO 7: POKE USR "B"+n,255: NEXT n FOR n=0 TO 7: POKE USR "C"+n,255: NEXT n FOR n=0 TO 7: POKE USR "D"+n,255: NEXT n FOR n=0 TO 7: POKE USR "E"+n,255: NEXT n FOR n=0 TO 7: POKE USR "F"+n,255: NEXT n PRINT "\a \b \c \d \e \f"
And the behaviour still being the same. Spectrum hangs when execute POKE USR "C" sentence.
Also does not work with --sinclair option.
The following code works perfectly:

Code:
9705 FOR N=0 TO 8*6-1: POKE USR "A"+N,255: NEXT N

Of course your solution is much more efficient than previous code. I'll use that you propose.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)