Previous Thread
Next Thread
Print Thread
Mac 128k/512k/Plus keyboard woes #117479 06/29/20 04:24 AM
Joined: Feb 2004
Posts: 2,151
Vas Crabb Offline OP
Very Senior Member
OP Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,151
So from reading the commit logs, I was lead to believe that OG had fixed the 6522 VIA enough to make the Mac 128k/512k/Plus keyboard work here and/or here. I was hoping to pull in some other stuff I was working on a while back that depends on the VIA kinda working, but wanted to get an idea of the current state of things and make sure I don’t cause any regressions. I couldn’t get it to work at all:
  • I could boot mac128k and mac512k from sys11 with clean NVRAM, later system versions or not removing the NVRAM file gives a sad Mac error.
  • I could boot macplus from sys603, but it seemed slower than my memory of the real machine (admittedly I haven’t used my Plus in years).
  • Using the Key Caps desk accessory on either machine didn’t show any response from the keyboard.
  • Trying to rename files in the Finder by typing didn’t work.
  • Trying to type into the Calculator desk accessory produced no response.


So what am I missing? Is the commit message misleading? Was it never actually working? Has it regressed already?

Re: Mac 128k/512k/Plus keyboard woes [Re: Vas Crabb] #117480 06/29/20 11:48 AM
Joined: Mar 2001
Posts: 16,521
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,521
The emulated keyboard was working at the time the commits went in but it definitely isn't now. I'm not sure where/when the regression happened, because the VIA and the keyboard were untouched after that AFAIK.

Re: Mac 128k/512k/Plus keyboard woes [Re: Vas Crabb] #117481 06/29/20 03:54 PM
Joined: Feb 2004
Posts: 2,151
Vas Crabb Offline OP
Very Senior Member
OP Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,151
Well I tested at d96b74baaffad8d21bd3536260abf500309e93c0 as well as several places along the way. It shows the same behaviour at every point: the keyboard works well enough to get System 1.1 to boot on the 128k/512k or to get System 6.0.3 to boot on the Plus, but it doesn’t actually work for typing anything anywhere. Also, there’s got to be something wrong with the speed of the Plus – it’s way slower than the 128k/512k, and the mouse is unresponsive. A real Plus definitely has snappy mouse response.

At 1921d81e64584a933ee97e2f865c62752712d99c I can type into Key Caps on the Plus, and the mouse is responsive. However, at this revision I can’t boot any system version at all on the 128k/512k – they all give a Sad Mac error. This behaviour persists up to 963a2c166d080e78e6de7fe432ed7944c59a6083, so it’s definitely that VIA change breaking it.

So in summary, d96b74baaffad8d21bd3536260abf500309e93c0 allows mac128k to boot sys11 at the expense of making it impossible to type on mac128k or macplus, and screwing up speed and mouse responsiveness on macplus. The 6522 VIA is still royally fucked.

Re: Mac 128k/512k/Plus keyboard woes [Re: Vas Crabb] #117486 06/30/20 04:50 PM
Joined: Feb 2004
Posts: 2,151
Vas Crabb Offline OP
Very Senior Member
OP Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,151
Well, if anyone wants to play with the slotted Mac keyboard port, there's a branch where it’s usable here. It supports the original 8021-based compact keyboard, the 8021-based numeric keypad that was sold separately, and the US-only 8048-based keyboard with integrated numeric keypad. I haven’t seen a schematic or board photo of the 8048-based keyboard, so the emulation is based entirely on examining the MPU program and observing its behaviour. The GI PIC versions of the keyboards, which seem to be far more common, aren’t emulated, and obviously can’t be emulated until we get program dumps.

Re: Mac 128k/512k/Plus keyboard woes [Re: Vas Crabb] #117487 06/30/20 05:29 PM
Joined: Mar 2001
Posts: 16,521
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,521
Nice!

Re: Mac 128k/512k/Plus keyboard woes [Re: Vas Crabb] #117490 07/02/20 03:18 AM
Joined: Feb 2004
Posts: 2,151
Vas Crabb Offline OP
Very Senior Member
OP Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,151
As of 32e23a104ef216b23e49035892a1b98dd303afbe, the keyboards work on master. The mac512k, mac512ke and macplus drivers will boot sys11, sys30 or sys603 and recognise the keyboard. Note that sys11 and sys30 have no support for ISO layout keyboards (gb, fr and it), and sys11 doesn’t support arrows for selecting files/folders in the finder or moving the insertion point in Key Caps.

For whatever reason, the mac128k driver doesn’t boot anything on master – just gives a “sad mac” error 0F0004 (code 0F exception, code 0004 divide by zero).


Who's Online Now
3 registered members (Sharkpuncher, Stiletto, 1 invisible), 54 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,782
Posts115,558
Members4,908
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3