ZXPAND ope cat

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
Post Reply
roganjosh
Posts: 100
Joined: Thu Jun 14, 2018 12:59 pm

ZXPAND ope cat

Post by roganjosh »

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
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: ZXPAND ope cat

Post by mrtinb »

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.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
kmurta
Posts: 302
Joined: Tue Sep 01, 2009 5:04 am
Location: Belo Horizonte - BR
Contact:

Re: ZXPAND ope cat

Post by kmurta »

This can helps you:

Zxpand Libs.zip
(7.6 KiB) Downloaded 176 times

Also take a look in how I implemented ZXpand support at TForth:
tforth15.asm
(95.68 KiB) Downloaded 159 times
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/
roganjosh
Posts: 100
Joined: Thu Jun 14, 2018 12:59 pm

Re: ZXPAND ope cat

Post by roganjosh »

kmurta wrote: Wed Mar 31, 2021 2:25 pm This can helps you:
Many thanks for that. I'll have a look tonight. I'd left SirMorris a message on SellMyRetro but it might take him a while to reply so hopefully your code will shine a light on things.

Alan
Post Reply