News:

2022.06.03 added links to LisaList1 and LisaFAQ to the General Category

Main Menu

Selector "Boot" from a 2-port parallel card ends in error 49 (Lisa 2/10, ESProFi

Started by bmwcyclist, Today at 08:12:08 PM

Previous topic - Next topic

bmwcyclist

Has anyone else seen this, or can confirm that it works for them?

Setup: Lisa 2/10, Apple 2-port parallel card in slot 2, an external ESProFile on the card's lower connector. The internal disk was unplugged for these tests. The ESProFile's SD card has the stock Selector (1.0) as profile.image and a set of ProFile images beside it.

What works: starting the Lisa from the card (Startup From, Apple-6) brings up the Selector with its list of images.

What does not: I highlight an image and press B. Instead of starting the image, the Lisa goes to the boot ROM's error screen: the Lisa icon crossed out, error 49. The Lisa FAQ lists 49 as "Line 1010 or 1111 trap", so this is a crash, not a disk error.

What I have tried:

- Three different images: a 48 MB Workshop/Office System image, an Office System 3.1 image and a 5 MB Office System 3 image. Error 49 every time.

- Two firmwares on the ESProFile: a factory-original build of the stock emulator (1.2) and ESPFuji 1.1.5. Same error 49 with both, so it does not look like a firmware matter.

- The Selector had been up for more than two minutes before I pressed B, so it is not a question of pressing it too early.

The image switch itself works. After the error 49 screen I choose Startup From and Apple-6 again, and the image I had picked in the Selector starts normally (tried with the Workshop image and with Office System 3.1, which came up to the desktop). The ESProFile keeps serving the chosen image until it loses power, so that is a usable workaround: press B, and at the error 49 screen start from the card's connector again.

So only the last step of Boot fails here, the hand-over from the Selector to the image, and only (as far as I have tried) with the emulator on the 2-port card. On my Mac XL, with an ESProFile on the built-in port, starting through the Selector works. The Selector's manual says ports on 2-port parallel cards are supported.

Questions:
1. Does the Selector's Boot work for anyone from a 2-port parallel card, with a Cameo/Aphid or an ESProFile?
2. If it does: which Lisa, which boot ROM, and was an internal disk attached at the time?
Using my LISA for writing blogs and other work projects, and for fun and games at home.
Visit my shares on GlobalTalk! LISAGamingZone
Check out the NEW Lisa Software! https://github.com/GyroPilot
telnet theapplelisabbs.duckdns.org 1983

bmwcyclist

Update from my intern/tutor:

Update: more tests, and what I think the cause is.

More tests: I repeated it with a second ESProFile board and a second SD card (same Lisa 2/10, same 2-port card, lower connector, ESPFuji 1.1.5). Same result: the Selector comes up, B on an Office System image ends in error 49. That is four out of four now, with two boards, two cards and two firmwares, so the drive is not what matters.

What I think the cause is. This is from reading code, not from a trace, so please check me.

1. The Office System's boot block. I disassembled block 0 of an Office System 3 image. At entry it stores A0 and the long word at (A7), that is, the return address it was entered with. It relocates itself, and adjusts that stored address by the same amount. Its block read routine then tests the boot device in $1B3: for 2 or less it calls the boot ROM (JSR $FE0090); for anything greater it loads A3 with the stored return address and A0 with the stored A0 and does JSR (A3). So when it is started from a slot card it reads every further block through the address it was entered from, with A0 as it was at entry.

2. The 2-port card's ROM (the 341-0193-A dump). Its boot code sets A0 to the base address of the port, reads block 0 to $20810, checks for $AAAA and enters the block with JSR (A2). The instruction right after that JSR is the start of the ROM's own block read routine. With the ROM loaded at $1FFFC that makes the return address $20344: the read routine. So the card ROM hands the boot block its read routine as the return address and the port in A0, which is exactly what the boot block uses.

3. The Selector's BootHd (boot.x68). For a card port it copies block 0 to $20810 and the card's ROM to $1FFFC, as the boot ROM would, sets $1B3, and then does its own JSR (A2) to $20810. The return address is then the Selector's next instruction, and A0 was last used as the pointer for copying the card's ROM, so it is not the port base. The boot block's first read of a further block therefore calls a relocated address inside nothing in particular, and the Lisa ends up at error 49 (line 1010 or 1111 trap).

That fits what I see: error 49 from the 2-port card whatever the drive, firmware or image; no problem on the built-in port, where the boot block calls the boot ROM and never uses the return address; and no problem when I choose Startup From and the card's connector after the error, because then the real card ROM does the hand-over.

If this is right, the Selector would need to start a card-port boot the way the card ROM does: either run the card ROM's own boot entry in the copy at $20000 with the registers the boot ROM gives it, or put the port's base address in A0 and enter the block so that the return address is the ROM copy's read routine. The second depends on the ROM's layout, so the first looks safer to me.

I have only looked at an Office System boot block. I don't know whether MacWorks, Xenix or UniPlus boot blocks use the same convention.

The workaround stands: press B, and at the error 49 screen choose Startup From and the card's connector.

Using my LISA for writing blogs and other work projects, and for fun and games at home.
Visit my shares on GlobalTalk! LISAGamingZone
Check out the NEW Lisa Software! https://github.com/GyroPilot
telnet theapplelisabbs.duckdns.org 1983