I'm having a problem with the above. It's probably my misunderstanding of the ZXPAND online docs.
What I'm looking for is a way to get a ZXPAND directory listing from an assembler program. I might be onto a loser there if the API_ZXPANDCMD entry vector call bombs out to BASIC but I haven't got to that stage yet. I thought I'd first experiment with the interface from BASIC to get the syntax right. The documentation seems to suggest that:
ZXPAND "OPE CAT"
will open a directory for listing. It just seems to give a status of '/0'. The full command is supposed to be "OPE CAT path" but there are no examples of how the path is defined. I tried
ZXPAND "OPE CAT ./"
in an attempt to specify the current directory buy that gives the same error string. I tried following both of those commands with
ZXPAND "GET CAT"
expecting to see something at $4041 (printer buffer) but get nothing resembling any directory entry (the default directory contains menu.p). All i get is a '0/0' status string. I also see that there is no "CLO CAT" command.
[ As an aside, I can get the REN command to work from BASIC, though it hangs from m/c after it completes, but that at least shows that the hardware is working ]
I'm left wondering what the correct end of the stick looks like.
Thanks
Alan
ZXPAND ope cat
Re: ZXPAND ope cat
I've tried for more than 1 hour from Basic to get anything, but every read gets the same data, and it's not names from the directory. I tried on real hardware: ZXpand+. Maybe the CAT command will only work from machine language. I have not tried from machine language.
Re: ZXPAND ope cat
This can helps you:
Also take a look in how I implemented ZXpand support at TForth:
Also take a look in how I implemented ZXpand support at TForth:
1 x ZX81, 2 x TK85 , 1 TK82C, 1 TK95, 1 x Alphacom 32 printer, 1 x ZXpand
ZeXtender board, Joy81 - Programmable Joystick Controller, Turbo Sound 81
http://zx81.eu5.org
https://toddysoftware.itch.io/
ZeXtender board, Joy81 - Programmable Joystick Controller, Turbo Sound 81
http://zx81.eu5.org
https://toddysoftware.itch.io/