-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Parameters following 'CALL' for pixel-plotting are limited to 8-bit-bytes only.
For example, CALL HPLOT,x,y,color used on the original-graphics-implementation's 320h x 180v x 8bpp limits the x-pixel-parameter to values less-than 256. This is a limit stemming from EhBASIC's ability to only parse byte-parameters following the CALL keyword and its use assembly code at label LAB_SCGB = "Scan-for-Comma-and-Get-Byte".
To allow for x-pixels beyond 255: e.g., 256 thru 319, one-additional bit of info would be necessary.
-
One option, an unattractive hack, would be to add an additional (4th) parameter to the CALL HPLOT to indicate x-pixels > 255.
-
Another option could be to abandon using "CALL" and perhaps move to using EhBASIC's "USR" keyword to bridge the basic-to-assembly/c gap.
-
Yet another option could be to hook into the EhBASIC token/keyword methodology. This however will lead to having discussions about 'syntax' (should we use Apple-2-like HGR and HPLOT, or C-64 syntax, or something completely new). This option will divert attention from the main issue.
-
Other options?