Skip to content

VLOAD speed enhancement #285

@ZeroByteOrg

Description

@ZeroByteOrg

On Discord, I had an idea for how to use the existing fat32_read routine in DOS with VLOAD.
Currently VLOAD uses ACPTR to read a file byte-by-byte into VRAM.
I considered a method to enable MACPTR as follows:
Create a 'VACPTR' call which is essentially just a front-end for MACPTR.

  • VACPTR will configure VERA data0 port to point to the target VRAM location with stride=1
  • It will then call MACPTR with the load-to address = data0
  • There needs to be some kind of flag set in memory "no-advance" which fat32_read can see.
  • in DOS, the fat32_read loop which copies from the IO buffer in bank0 into RAM should check the flag before advancing the dst pointer during the loop.
    e.g.:
    BIT noadvance ; msb set = do not advance dst pointer / msb clear = normal operation
    BMI :+
    ; increment mem destination ptr
    :

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions