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
Multiplication result greater than 255 in UINTEGER var
#1
First of all, as usual, sorry if this was discussed before... at a first sight around the arguments, i didn't find a solution.

The below code works till the "32*(PEEK 32044)" multiplicaton returns a a value within 255, but why?...

Code:
REM 32043 and 32044 store line and column values REM the routine should return the screen attr address DIM a AS UINTEGER a = 22528+PEEK 32043+(32*(PEEK 32044)) REM it doesn't work if the result of the multiplication exceeds 255!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)