And yet:There isn't a subcall. To change directory you do OSCLI "DIR "+dirname$.My searching has failed me so-far, but what I'm after is the magic runes to change a directory from inside a program and by this I really mean some sort of OSxxxx call rather than an OSCLI *DIR ... type of thing.
I'd like some sort of system call as I really want to capture any errors that might happen (e.g. not found) rather than having a message printed. OSCLI doesn't appear to return any code, error or otherwise.
To capture errors you use ON ERROR or the machine code equivalent. A message will only be printed if your error handler prints a message.
https://beebwiki.mdfs.net/OSCLI
says:
On exit: undefined
So what gives? How can/does it return any form of error code? (Other than landing on a BRK on the 6502 side)
Or, maybe I just don't know how to trap an error on the Native ARM (yet). I can trap BRK on the 6502 side, but what about on e.g. an application running under e.g. Panos on the 32016? (The closest analogy to what I ultimately want to do)
I feel I'm right in the middle of the situation where I don't know what I don't know and I can't find the documentation.
-Gordon
Statistics: Posted by gordonDrogon — Tue May 07, 2024 10:30 pm