News:

Want an XLerator? Please participate in the market research thread: https://lisalist2.com/index.php/topic,594.msg4180.html

Main Menu

One ROM (archive) to rule them all?

Started by bmwcyclist, November 28, 2026, 08:10:16 AM

Previous topic - Next topic

bmwcyclist



I have been collecting the Lisa ROM images to build an identification table (sigma7's suggestion in the TattleTale topic), and ran every boot ROM through the ROM's own checksum (add each word, rotate left one; a good image sums to 0). This confirms what TorZidan and sigma7 worked out here last year, with a few numbers added.

1. The 341-0175-C and 341-0175-D files on bitsavers are still the bad reads

(fetched today from the mirrorservice.org mirror of bits/Apple/Lisa/firmware). Merged with their 341-0176 halves they sum to AC9C (C) and E78F (D) instead of 0. The 341-0176-C and -D halves are fine.

sigma7's diagnosis fits exactly: every wrong byte sits at an address with bit 8 clear, and almost all of them are the byte from $100 higher.

  341-0175-C: 20 wrong bytes, 19 of them the good byte from $100 higher (at $0200, $0600, $0A00, $0E00, $1200, $1600, $1A00, $1E00)

  341-0175-D: 92 wrong bytes, 83 of them the good byte from $100 higher (at $0A00, $0E00-$0E3x, $1200, $1600, $1A00, $1E00)

2. Good images, all passing the ROM's checksum. Version + checksum word at $FE3FFC, then CRC-32 of the merged 16K image:

  B   02 09 / 5E 4B   3191D81C   bitsavers 0175-B + 0176-B (same as compu_85's prototype set, topic 202)
  C   02 11 / B2 67   6FD4FDF6   sigma7's 341-0175REVC (topic 615) + bitsavers 0176-C
  D   02 44 / 33 58   01BF87F6   sigma7's merged D (topic 615)
  F   02 46 / F6 F5   8CE7EE43   bitsavers 0175-F + 0176-F
  H   02 48 / 3F 7B   C7FCC37B   bitsavers 0175-H + 0176-H
  3A  03 41 / D9 05   D957A452   bitsavers 0347-A (even) + 0346-A (odd)

For D: sigma7's 341-0175D_2764 half merged with bitsavers' 341-0176-D gives byte for byte the merged D file from topic 615, so the split half is good too. From D on, the second version byte is simply the revision letter in ASCII (44, 46, 48).

3. One more oddity on bitsavers:

341-0138-D.bin and 341-0138-E.bin are the same file (MD5 7670c2c78004770e2192d4a6dd2daaea), so one of the two Twiggy I/O ROM revisions is not really there. The 341-0138 "BT-D" in the prototype set (topic 202) is a different image.

4. What I could not find anywhere, and would like to hear about:

- A second ROM for the Dual Parallel card. Apple's "Macintosh XL Hardware Information" of May 1985 shows version 1.07 at slot address + $FF8; the only dump around (341-0193-A) reads 1.00 there. Does anyone have a card whose ROM says something else?

- The 2/10 400K I/O ROM as a binary (341-0281-D; bitsavers has its source) and the 2/5 800K one (341-8001).
- Boot ROM revisions A, E and G, and the rev H ROMs patched for XLerator auto-boot.
- A good 341-0138-D or -E, whichever the bitsavers file is not.

If the bitsavers maintainer reads here: the two 341-0175 files could be replaced by sigma7's.
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

AlexTheCat123

Quote from: bmwcyclist on November 28, 2026, 08:10:16 AM341-0138-D.bin and 341-0138-E.bin are the same file (MD5 7670c2c78004770e2192d4a6dd2daaea), so one of the two Twiggy I/O ROM revisions is not really there. The 341-0138 "BT-D" in the prototype set (topic 202) is a different image.

I found another revision called 341-0138-F during my ESFloppy work, I discovered that it was a bit broken. It reports ROM revision 52 instead of 40, and it would sort of work on the lower drive, but it handled things like the calibration track and retries in a very odd way that would often cause operations to fail. Plus, it would refuse to drive MT0, meaning that the upper drive would never spin and thus never work.

sigma7

That's a nice start, thanks!

For the ROMs that are extremely similar, such as the subvariants of the A8 and 88 I/O ROMs, I suggest having a "differences" column that specifies the addresses and byte values that differ, along with a notes field that can be used to describe the effect of the change (if someone takes the time to figure that out).
Warning: Memory errors found. ECC non-functional. Verify comments if accuracy is important to you.

bmwcyclist

Quote from: sigma7 on November 28, 2026, 01:13:28 PMThat's a nice start, thanks!

For the ROMs that are extremely similar, such as the subvariants of the A8 and 88 I/O ROMs, I suggest having a "differences" column that specifies the addresses and byte values that differ, along with a notes field that can be used to describe the effect of the change (if someone takes the time to figure that out).


Good idea on the differences column. I compared the I/O ROM dumps byte for byte. The ROM ID byte (the one the 68000 reads at $FCC031) sits at file offset $141 in the A8 and 88 dumps, inside the "shared RAM defaults" table (located with the table's pattern from the ROM 88 source: "RomID .Byte 088").


FileID byteCompared withBytes that differ (file offset: old -> new)Notes
341-0290-BA8-reference for the A8 familythe A8 ROM listed for the Lisa 2
341-8003-AA8341-0290-B72 bytes in 2 places: $43D-$43F 20 E4 14 -> EA EA EA (a JSR replaced by 3 NOPs); $E7F-$EC3 a 69-byte routine replaced by a 22-byte one, the rest zeroseffect not worked out yet
341-8003-BA8341-8003-A2 bytes: $2D4-$2D5 D0 1B -> EA EA (a BNE replaced by 2 NOPs)= 8003-A plus this one change; effect not worked out yet
341-8003-C88the A8 filesabout 3,070 bytes differ: a different build, not a patchthe two 8003-C files in the bitsavers set are identical
341-0138-D / -E-each otheridentical filesTwiggy I/O ROM
341-0138-F-341-0138-D2,448 bytes in 104 places: a different buildsee Alex's post above

Offsets are from the start of each 4 KB dump file. I have not checked where the 6504 maps them.

One data point from a real machine: this morning a small read-only test driver on my Lisa 2/10 read the boot ROM and the Dual Parallel card ROM under the Office System:
  • Boot ROM: version word 02 48, checksum word 3F 7B (= H); all 16,384 bytes give the same sums as the 341-0175-H / 341-0176-H dump pair.
  • I/O ROM ID byte: 88.
  • Dual Parallel card in slot 2: version bytes 01 00 (= 1.00); all 2,048 bytes match 341-0193-A.

If anyone has a Dual Parallel card that reports 1.07 (the version in Apple's Mac XL hardware notes), a dump of it would fill the last gap for that card.

Also, on a completely seperate note, I have been having issues with my Sun SCSI card if anyone has one of the PBC for making a new one please let me know.
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

#4
Follow-up: I compared 341-8003-C (ID byte 88) with the "Lisa IO ROM 88" source on bitsavers.

The source assembles at 6504 $1000 (.ORG 1000, vectors up to $2000), so the dump file offsets above are $1000 lower than the 6504 addresses.

- Data tables ($1000-$1154 and the denibble table at $1196): 8003-C and all three A8 dumps carry the same tables apart from the ID byte at $1141, and all four differ from the source listing in the same 4 bytes: $1116 03->02 (a speed table), $112D CB->6B (the format-track entry of the command table), $11D3 AF->1F and $11E8 EB->E8 (denibble table).

- Code: of every run of 8 instructions in the source, 92% appear in 8003-C; in the A8 dumps 67-70%. The read, seek and write routines are 100% in 8003-C; the A8 ROMs lack the source's write-16 and clear-track routines entirely. A Twiggy ROM, as a control, matches 27%.

So 8003-C is an 88 ROM from this source family and much the closest dump to it, but not built from exactly this listing. The listing carries a 1/9/89 date in its tables, so it may be a later revision than any dump we have.rack routines entirely. A Twiggy ROM, as a control, matches 27%.

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

sigma7

Quote from: bmwcyclist on <strong>Yesterday</strong> at 09:51:47 AMIf anyone has a Dual Parallel card that reports 1.07 (the version in Apple's Mac XL hardware notes), a dump of it would fill the last gap for that card.

Sent via email.

QuoteThe source assembles at 6504 $1000 (.ORG 1000, vectors up to $2000), so the dump file offsets above are $1000 lower than the 6504 addresses.

For most purposes, you don't need to decode the re-mapping of ROM dump addresses (which pretty much always start at 0) to where they appear in the logical address space of the processor. For comparing a ROM to a listing, it is enough to state the ROM starts at {some logical address} and the reader can add.

eg. listing says ORG $1000, so one mentally adds/subtracts $1000 when comparing the listing to a ROM dump.

QuoteThe listing carries a 1/9/89 date in its tables, so it may be a later revision than any dump we have

I believe only the Twiggy ROM will be earlier than this. The 800K DS (developed by/for Sun Remarketing) and 400k/800k 'universal' (developed circa 2015) variants come after this.

The I/O ROM source listings that I'm aware of are for the 400k SS floppy. The 800k variants of the ROM are quite common and are different in (IIRC) a dozen or so bytes.
Warning: Memory errors found. ECC non-functional. Verify comments if accuracy is important to you.

sigma7

Quote from: bmwcyclist on <strong>Yesterday</strong> at 09:51:47 AMI/O ROM ID byte: 88.

To dump the entire I/O ROM in situ, the 68000 writes a few bytes of 6502 code into the shared memory and uses the FDC "Call Program" command to have the 6504 execute it, passing over chunks of the I/O ROM that only it can access.
Warning: Memory errors found. ECC non-functional. Verify comments if accuracy is important to you.

bmwcyclist

Thanks for the 1.07 dump!

 It reads clean: ID E002, 03FD words, version bytes 01 07, and the boot ROM's add-and-rotate checksum over the whole 2 KB comes out to zero (the 1.00 dump does too).

It is not a small patch: 1,569 of the 2,048 bytes differ from 341-0193-A. From a quick disassembly, the main changes are:

   •   The wait for the drive to answer each handshake step goes from 114 loop passes (about 0.9 ms) to 65,535 (roughly half a second).

   •   A failed boot block read is retried, with a reset pulse before the third try (1.00 tries once).

   •   The wait for the drive to become ready at boot is 16 times longer.

   •   Three more status bits count as a fatal error.

   •   The card's self-test runs six checks instead of four.

The first one explains something we ran into: an ESProFile firmware build that answered in about 2 ms instead of microseconds would not start my 2/10 from the Dual Parallel card.

My card is 1.00, and a 1.07 card would have waited for it.

May I add it to the ROM table and the dump package, credited to you?
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

sigma7

Quote from: bmwcyclist on <strong>Yesterday</strong> at 07:02:04 PMMay I add it to the ROM table and the dump package, credited to you?

Please add it to the table/archive. No credit for this is warranted/due to me.
Warning: Memory errors found. ECC non-functional. Verify comments if accuracy is important to you.