TNT's Z-code interpreter, and FE3

Discussion, Reviews & High-scores

Moderator: Moderators

User avatar
Diddl
Vic 20 Afficionado
Posts: 426
Joined: Wed Jun 10, 2009 3:18 am
Website: https://oe7twj.at/
Location: Austria
Occupation: software engineer

Post by Diddl »

TNT wrote:Is VIC-20 Block 0 ($0400 - $0fff) mapped to SRAM Bank 0 in SUPER RAM mode? Documentation says it's enabled but doesn't specify where it's mapped.
Yes, Blk-0 is alwyas mapped in Bank-0, so bank 0 is not fully usable cause 3KB appears double if bank 0 is selected.

But you can disable and write protect blk-0.

TNT wrote:edit: Second question - is there a way to get name of current directory or mounted disk image? I'm thinking of scenario where I might want to CD:<-, do something, then CD:back_to_previous_dir.
I have no idea if it is readable. The SD2IEC part of FE-3 is from Unseen. Will ask him.
User avatar
Diddl
Vic 20 Afficionado
Posts: 426
Joined: Wed Jun 10, 2009 3:18 am
Website: https://oe7twj.at/
Location: Austria
Occupation: software engineer

Post by Diddl »

TNT wrote:edit: Second question - is there a way to get name of current directory or mounted disk image? I'm thinking of scenario where I might want to CD:<-, do something, then CD:back_to_previous_dir.
Unseen says no, firmware itself doesn't know it.
TNT
Vic 20 Hobbyist
Posts: 121
Joined: Wed Apr 29, 2009 5:46 am

Post by TNT »

sd2iec related: I didn't find a method to activate swap list disk changes with software. CD:_+ and CD:_- would be just fine for my purposes ;)
(_ denotes back arrow)

BTW: I had to reset FE3 before bootloader managed to load firmware from memory card. Maybe my SD card wasn't initialized fast enough? If this is a common problem it could be mentioned in sd2iec and/or FE3 docs.
User avatar
Diddl
Vic 20 Afficionado
Posts: 426
Joined: Wed Jun 10, 2009 3:18 am
Website: https://oe7twj.at/
Location: Austria
Occupation: software engineer

Post by Diddl »

TNT wrote:sd2iec related: I didn't find a method to activate swap list disk changes with software. CD:_+ and CD:_- would be just fine for my purposes ;)
(_ denotes back arrow)

Will make a suggestion to Unseen ... :wink:

see here

TNT wrote:BTW: I had to reset FE3 before bootloader managed to load firmware from memory card. Maybe my SD card wasn't initialized fast enough? If this is a common problem it could be mentioned in sd2iec and/or FE3 docs.

No known problem.

If SD init is too slow you could find out this by pressing F3 for Diskloader delayed. My Firmware doesn't access SD2IEC after reset, only after pressing F3.
Unseen
Vic 20 Amateur
Posts: 47
Joined: Sun Feb 01, 2009 9:16 am

Post by Unseen »

TNT wrote:edit: Second question - is there a way to get name of current directory or mounted disk image?
No, the firmware only knows the cluster number of the current directory and only has a file handle for the current disk image. Storing their names would be a waste of memory.
I'm thinking of scenario where I might want to CD:<-, do something, then CD:back_to_previous_dir.
...and this is why I hate it when people just forward me partial feature requests: "cd -" or even pushd/popd functionality is possible without knowledge of the directory/file names involved.
Unseen
Vic 20 Amateur
Posts: 47
Joined: Sun Feb 01, 2009 9:16 am

Post by Unseen »

TNT wrote:sd2iec related: I didn't find a method to activate swap list disk changes with software. CD:_+ and CD:_- would be just fine for my purposes ;)
Why?
Unseen
Vic 20 Amateur
Posts: 47
Joined: Sun Feb 01, 2009 9:16 am

Post by Unseen »

Diddl wrote:Will make a suggestion to Unseen ... :wink:
Thank you for wasting my time by making me answer the same question multiple times and by leaving out important details.
TNT
Vic 20 Hobbyist
Posts: 121
Joined: Wed Apr 29, 2009 5:46 am

Post by TNT »

Unseen wrote:
TNT wrote:sd2iec related: I didn't find a method to activate swap list disk changes with software. CD:_+ and CD:_- would be just fine for my purposes ;)
Why?
Beacuse Infocom games don't usually have enough space for save files on data disk, and I guess most FE3 owners have not installed disk change buttons.

There's no need to waste your time on this tho, I will use 1541U until I have found some small pushbuttons for FE3.
User avatar
Mike
Herr VC
Posts: 4976
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

TNT wrote:Because Infocom games don't usually have enough space for save files on data disk, and I guess most FE3 owners have not installed disk change buttons.
Are you talking about 170K *.d64 images? Unless there's direct access involved, it should be possible to run the game from a *.d71 or even *.d81 image file, giving you 340K, or 800K to play with.

Or mount a subdirectory on the SD card, so then there's ~2 GB available. :P
Unseen
Vic 20 Amateur
Posts: 47
Joined: Sun Feb 01, 2009 9:16 am

Post by Unseen »

TNT wrote:Beacuse Infocom games don't usually have enough space for save files on data disk, and I guess most FE3 owners have not installed disk change buttons.
The Infocom interpreter has a function to send arbitrary commands to the drive? I don't remember anything like that in the original manuals.
Mike wrote:Unless there's direct access involved
A few Infocom adventures were the first test case when I added the U1/U2 commands in sd2iec. The directory of those adventures just contains a small loader that uses direct sector access to load everything else.
carlsson
Class of '6502
Posts: 5516
Joined: Wed Mar 10, 2004 1:41 am

Post by carlsson »

TNT has written his own Z-machine interpreter which runs on PET, VIC-20 and so on.
Anders Carlsson

Image Image Image Image Image
User avatar
Mike
Herr VC
Posts: 4976
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

Unseen wrote:A few Infocom adventures were the first test case when I added the U1/U2 commands in sd2iec. The directory of those adventures just contains a small loader that uses direct sector access to load everything else.
Yuk. :shock: In that case, it can be tried to mirror the data into a CBM partition of 35 tracks on a *.d81 image.

I did that once with Space Rogue from Origin, and it worked. :)
User avatar
orion70
VICtalian
Posts: 4272
Joined: Thu Feb 02, 2006 4:45 am
Location: Piacenza, Italy
Occupation: Biologist

Post by orion70 »

I'm VERY interested in this issue. I have a FE3 with no disk switch buttons, and I'd love to play those adventures on a real VIC :D .
To summarize: is it possible to put the interpreter/loader *.d64 and the story disk(s) *.d64 onto a single *.d81 image, and load the game without problems on a FE3? If so, how can I do it? Thanks in advance.
User avatar
orion70
VICtalian
Posts: 4272
Joined: Thu Feb 02, 2006 4:45 am
Location: Piacenza, Italy
Occupation: Biologist

Post by orion70 »

UP! Anyone knows how to make Infocom adventures playable on a FE3, given that I have no disk switch buttons?
User avatar
Mike
Herr VC
Posts: 4976
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

orion70 wrote:UP! Anyone knows how to make Infocom adventures playable on a FE3, given that I have no disk switch buttons?
PM sent. :)
Post Reply