6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 7:09 am

All times are UTC




Post new topic Reply to topic  [ 76 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: 6502 Sandbox
PostPosted: Fri Mar 29, 2013 9:26 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
I second that! I fired up the Atomulator the other day, and the keyboard mapping flummoxed me. Plus, the rollover problem...
Cheers
Ed


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Fri Mar 29, 2013 10:27 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
But this is terribly impressive, for all the emulated limitations of the Atom.
Have you considered emulating an Electron instead? Not necessarily all the hardware oddities, but the keyboard and OS story seem to be better.


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Fri Mar 29, 2013 11:10 am 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
The attractive part of the Atom is its simplicity. There's only the CPU, memory, a (simple) 6847 video generator, and a 3 port PIA, and there's plenty of documentation on the web, including schematics, datasheets for all the components, and commented ROM code. Plus the fact that the Atom was my first computer makes it interesting to see it again, as well as all the old software that I used to have. The Electron was actually my second computer (didn't have the money for a Beeb), but except for Elite, I don't remember owning any software for it, and I really don't have much memories of the machine.

The Electron OS would be an improvement, but in order for it to run you also need to emulate all the hardware, and I'm not sure how much work that is, or how well organized the documentation is. Also, if I were to go that route, maybe it would be better to emulate a Beeb instead. It's the same OS, but with better hardware. And I do have fond memories of playing 'Planetoid' on the Beeb at the local computer club I used to go to.


Last edited by Arlet on Fri Mar 29, 2013 11:26 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Fri Mar 29, 2013 11:21 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Yes, certainly a simple machine has attractions. Is it practical to tweak just the keyboard handling in the OS?


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Fri Mar 29, 2013 11:40 am 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
BigEd wrote:
Yes, certainly a simple machine has attractions. Is it practical to tweak just the keyboard handling in the OS?

The biggest problem would be to keep the OS compatible with old software that directly uses undocumented addresses. And there's plenty of such software around. The actual improvements to the keyboard handling wouldn't be that difficult.


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Fri Mar 29, 2013 11:48 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Ah, of course.
How about a front end which does denounce/rollover before the atom sees it - does that make sense?


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Fri Mar 29, 2013 1:09 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
Actually, I already have most of that front end. I now have: PC keyboard -> PC app -> UART -> FPGA -> Hardware scan code to matrix conversion -> Atom OS matrix to scan code conversion.

The scan codes I get from the PC are already cleaned up, so I could just put the scan codes for each pressed key in a hardware register that the 6502 can access. The Atom OS code can then be patched so that it just grabs the scan code from that register, instead of scanning the keyboard matrix itself. This is a very small patch, so I can leave most of the absolute address the same. Code that tries to access the keyboard matrix directly would still work, but code that goes through the 'official' entry points would benefit from the accelerated path.


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Fri Mar 29, 2013 1:56 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
The classic Space Invaders works too, but it's unplayable because it's too fast, running at 8 MHz instead of 1. Some of the other games run at normal speed because they look at the vertical sync, but apparently this one is timed in software. For retro compatibility, I'll have to look into adding an option to slow down the clock.
Attachment:
invaders.jpg
invaders.jpg [ 20.46 KiB | Viewed 1396 times ]

The pac-man clone "snapper" is also too fast, and the screen is messed up because it uses a color mode, and I don't have support for color modes yet.
Attachment:
snapper.jpg
snapper.jpg [ 34.4 KiB | Viewed 1396 times ]

Added support for the color modes by implementing them as 4 tone grayscale (just random values, so probably not same as original).
Attachment:
snapper2.jpg
snapper2.jpg [ 34.33 KiB | Viewed 1390 times ]


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Thu May 30, 2013 9:56 pm 
Offline
User avatar

Joined: Sat Sep 29, 2012 10:15 pm
Posts: 904
Great job, Arlet! I dropped the ball with 6502 Playground, and am very happy that you are continuing along the same path.

Have you gotten to the point where you can sell an extra board?

_________________
In theory, there is no difference between theory and practice. In practice, there is. ...Jan van de Snepscheut


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Fri May 31, 2013 8:02 am 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
I have one empty board left from my first order of prototypes. If you want it, I can send it to you (no charge). If you prefer it with the components on it, it'll take some more time and I'll have to figure out what it would cost. Let me know what you want.

I'm still planning to finish rev 2, but I'm busy with real work right now, so it's on the back burner.


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Sat Jun 01, 2013 4:56 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
Eagle design files available here


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Wed Dec 28, 2016 2:01 am 
Offline

Joined: Thu Mar 10, 2016 4:33 am
Posts: 181
Arlet wrote:
Eagle design files available here


Arlet, would it be possible to have a look at the Verilog files you used for this project? I'm building something similar and am just starting out with Verilog so I'm sure I could learn from your code for this. I've wired up a 65186 up to a Spartan-6 and am just getting started with bringing it to life.


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Wed Dec 28, 2016 9:23 pm 
Offline

Joined: Tue Feb 24, 2015 11:07 pm
Posts: 81
jds wrote:
Arlet, would it be possible to have a look at the Verilog files you used for this project? I'm building something similar and am just starting out with Verilog so I'm sure I could learn from your code for this.

+1. I missed this project and enso's playground too as they were before I joined.

I'm working on my R2 attempt, which is a little bit similar. I'm also just beginning with Verilog and would like to see how it's done properly.


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Thu Dec 29, 2016 4:53 am 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
Code is a mess, but if you really want to see it, send me PM.


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Sandbox
PostPosted: Fri Dec 30, 2016 2:22 am 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1949
Location: Sacramento, CA, USA
I'm not sure, Arlet, but it looks like you might have forum PMs presently disabled in your dashboard.

Mike B.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 76 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 22 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: