Anything that passes a block of data to a call that ends up in a sideways ROM has to be in memory visible to all sideways ROMs, so in main memory, <&8000. And, in general, it's best to assume *all* API calls require their data in main memory.2. Can you call DFS commands from a different sideways bank? e.g. If I call OSFILE with the control block at say &8100 in a ram bank is that a problem?
Or: TSX:TXA:TAY:SEC:SBC #blocksize:TAX:TXS:TYA:PHA and then you have a block on the stack and clear it off with PLA:TAX:TXS2) It don't think that'll work; when the DFS ROM is paged in it can only see it's own ROM at &8000-&BFFF. It's not uncommon to build temporary data at the top (bottom) of the stack at &100 and use that, so if you have fixed data in ROM then you can just copy it to &100 and use the control block from there.
*RENAME3. Is there a better way to rename a file from assembly than loading the file into memory, changing the name pointer, and saving that piece of memory back as a new file?
Statistics: Posted by jgharston — Thu Jan 23, 2025 9:09 pm