Skip to content

Parameters following 'CALL' for pixel-plotting are limited to 8-bit-bytes only. #3

@netzerohero

Description

@netzerohero

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.

  1. One option, an unattractive hack, would be to add an additional (4th) parameter to the CALL HPLOT to indicate x-pixels > 255.

  2. 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.

  3. 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.

  4. Other options?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions