-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Labels
Description
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
: