Discussion:
Mame/Ample questions
(too old to reply)
Kent Dickey
2021-06-28 15:25:45 UTC
Permalink
After the post I made about reading $C010 to see if a key was down
(and having it pointed out that this only works on Apple //e or later), I
thought I'd see what MAME did when it was set to an Apple II+.

So I ran Ample on my Mac, and after a lot of trouble, I ran:

10 A = 49152
20 ? PEEK(A),PEEK(A+16)
30 GOTO 10
run

This just does PEEK($C000),PEEK($C010) over and over.

And MAME emulates a //e--the peek($C010) shows a key being held down.

But that's not my main purpose of this post: I could barely enter the
above program. Again, I'm on a Mac (Big Sur 11.4).

10 a=49152

That didn't work. I have a key on my keyboard marked = with + as the
shifted version. Press that key gave me: -. It turns out pressing
Shift = (which should give me +) does give me =.

20 ? peek(

The ( is a problem. I pressed shift-9 on my keyboard (which is the key on
my keyboard with the ( above it), and I got ")". To get (, I have to press
shift-8 (which my keyboard says should be *).

But even weirder is +. From the '=' problem before, clearly the =/+ key
was not going to work. I found + eventually as Shift-; (the key on my
keyboard is ; with : as the shifted version).

By now, I'm sure Apple II+ users have realized what's going on.
These mappings match the actual physical Apple II+ keyboard (which is a weird
keyboard).

But how is this useful for an emulator to do? I tried using the MAME
key mapper (Delete then Tab, then Input (this machine)), and I cannot see
how to change what "shift" generates as compared to the non-shifted version.
So how do I get MAME to give me @ for shift-2 instead of "?

Kent
David Schmidt
2021-06-28 17:42:26 UTC
Permalink
Post by Kent Dickey
After the post I made about reading $C010 to see if a key was down
(and having it pointed out that this only works on Apple //e or later), I
thought I'd see what MAME did when it was set to an Apple II+.
[...]

Kelvin Sherlock is active on Slack - I've sent you an invite (to your
email in the message header) if you'd like to pick up the conversation
there. Otherwise, I'm sure he'll be by here in due course. :-)

- David

Loading...