6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 10:46 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: KIM-1 Ruler
PostPosted: Sat Jun 26, 2021 3:41 am 
Offline

Joined: Sat Jun 26, 2021 3:03 am
Posts: 2
Hello everyone, I never thought to do anything related to the 6502, I always used the Z-?? in the 80's (It should be forbidden to mention it), but now I am delighted to discover the 6502. I recently bought a KIM Uno (Obsolescence Guaranteed) kit and then the PAL-1 Replica.
I'm now working on the KIM-1 Ruler (#KIM1Ruler on Twitter) a version of the KIM Uno (non-profit project).
I just signed up for this forum because I think I will need some help and feedback as the project progresses.
regards.


Attachments:
File comment: KIM-1 Ruler running MicroChess
KIM1Ruler_MicroChess_030.png
KIM1Ruler_MicroChess_030.png [ 1.22 MiB | Viewed 3994 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: KIM-1 Ruler
PostPosted: Sat Jun 26, 2021 6:48 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Very nice! I like handheld computing, and I like embedded emulation. I don't have a slide rule holster, but if I did, and if I wore it all the time, I might like to replace the slide rule with the KIM rule.

I do have a question: is the keyboard debouncing handled at the arduino level, or at the 6502 level?


Top
 Profile  
Reply with quote  
 Post subject: Re: KIM-1 Ruler
PostPosted: Sat Jun 26, 2021 4:38 pm 
Offline

Joined: Sat Jun 26, 2021 3:03 am
Posts: 2
As far as I could understand:
exec6502() , scanKeys() and Serial.available() are executed regularly in the Arduino loop().
The CPU emulation exec6502() executes 100 instructions each time is called.
The key debounce time is associated with the duration of this main loop.

New key inputs can come from the keypad or the serial port.
In the 6502 cpu emulation:
- Any read memory to the GETKEY address (0x1F6A in the KIM monitor) is intercepted to check for a new key.
- Also, any read to the keyboard input port address (0x1740, Port A of the 6530-002 RIOT) signals the emulation to check the keypad as the source.

In any case @oscarv is the wizard behind this. :-)


Top
 Profile  
Reply with quote  
 Post subject: Re: KIM-1 Ruler
PostPosted: Sun Jun 27, 2021 4:50 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Thanks! (It seems likely, then, that the Arduino level will deliver clean debounced keypresses to the 6502 layer.)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: