Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II Emulation » Mame/Ample questions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Mame/Ample questions [message #409420] Mon, 28 June 2021 11:25 Go to next message
Anonymous
Karma:
Originally posted by: kegs

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
Re: Mame/Ample questions [message #409422 is a reply to message #409420] Mon, 28 June 2021 13:42 Go to previous message
David Schmidt is currently offline  David Schmidt
Messages: 993
Registered: October 2012
Karma: 0
Senior Member
On 6/28/21 11:25 AM, Kent Dickey wrote:
> 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:
[...]

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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Sweet 16
Next Topic: KEGS v1.08 released
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Apr 19 19:35:20 EDT 2024

Total time taken to generate the page: 0.01457 seconds