6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 16, 2024 4:11 pm

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Apple II on an FPGA
PostPosted: Sun Oct 16, 2011 7:02 pm 
Offline

Joined: Sun Sep 15, 2002 10:42 pm
Posts: 214
I was googling for some unrelated stuff, and ran across this web page:

\http://www.cs.columbia.edu/~sedwards/apple2fpga/

Maybe some of the files from it should be added to the archives?

Toshi


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 18, 2011 10:39 pm 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
He references the Syntiac pages, where he got Peter Wendrich's 6502 (6510?) core. I've been to that site before and assumed he was no longer sharing his CPU core because he had moved it out of the VHDL library. But they're easily accessible in the zip files.
That site and FPGAARCADE's site are very inspirational for FPGA enthusiasts like me. New update on FPGAARCADE, been almost 4 months!

_________________
65Org16:https://github.com/ElEctric-EyE/verilog-6502


Top
 Profile  
Reply with quote  
 Post subject: Re: Apple II on an FPGA
PostPosted: Wed Jul 10, 2013 11:38 pm 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
Ah, here we go. This is the thread I was looking for!
Another update on FPGAARCADE.

Congrats to Mike for apparent completion of his Replay Board.

_________________
65Org16:https://github.com/ElEctric-EyE/verilog-6502


Top
 Profile  
Reply with quote  
 Post subject: Re: Apple II on an FPGA
PostPosted: Thu Jul 11, 2013 4:35 am 
Offline
User avatar

Joined: Sat Sep 29, 2012 10:15 pm
Posts: 904
I made an Apple ][ a couple of years back. The verilog is really ugly, but it does work. It's a bit of a blur and I wish I took more notes. I can't even remember how to put the files onto the SD card anymore, but I have 128 games I can select from... I am afraid to touch it as I don't think I'll be able to fix it if it breaks...

I used Arlet's core on a XESS board, my own VGA design and a bunch of horrible glue connecting it all up. I had to breadboard a couple of 556 timers for joysticks. a speaker, an SD card and a rotary sensor for selection (controlled by a picoblaze).

It was definitely an interesting project.

There is also this link: http://alexfreed.com/FPGApple/revisited.html

_________________
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: Apple II on an FPGA
PostPosted: Wed Jul 17, 2013 4:49 am 
Offline
User avatar

Joined: Sat Sep 29, 2012 10:15 pm
Posts: 904
I unpacked it and it still works...
Attachment:
myapple.rotated.JPG
myapple.rotated.JPG [ 302.5 KiB | Viewed 3210 times ]

What's really interesting is that pretty much all games I've tried to run on it run. A few refuse to run (probably has to do with writing to disk - I don't support it). Only one, Apple Panic, works but the image of the little guy running around is scrambled. It's probably one of the weird undocumented instructions. I am surprised how rarely they must be used. I know I've been tempted back in the day.

_________________
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: Apple II on an FPGA
PostPosted: Sat Jul 20, 2013 6:48 am 
Offline

Joined: Sun Sep 15, 2002 10:42 pm
Posts: 214
The Apple II line included the Apple //e, which used a 65C02.

On the 65C02, the undocumented opcodes are NOPs if I remember correctly.
So any software using undocumented opcodes would not run on the //e.
So people avoided using the undocumented opcodes.

Also, I don't think the Apple II assemblers such as Merlin, LISA and S-C Macro Assembler supported the undocumented instructions.

Toshi


Top
 Profile  
Reply with quote  
 Post subject: Re: Apple II on an FPGA
PostPosted: Sat Jul 20, 2013 7:04 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8541
Location: Southern California
Quote:
The Apple II line included the Apple //e, which used a 65C02.

On the 65C02, the undocumented opcodes are NOPs if I remember correctly.

The Apple IIc used the 65c02 also. Many of the undocumented op codes on the NMOS 6502 became other [documented] things on the 65c02 which had more instructions and addressing modes; so the undocumenteds of the NMOS would do something different on the CMOS.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: Apple II on an FPGA
PostPosted: Sun Jul 21, 2013 5:31 am 
Offline
User avatar

Joined: Sat Sep 29, 2012 10:15 pm
Posts: 904
Your are correct, it cannot be undoc'd instruction. This makes the mystery even more interesting. If your are unfamiliar with Apple Panic, it is a simple game in which you control a little guy runing around several horizontal I-beams connected with ladders while bad apples are trying to eat you.

The blitting works fine for the apples, but the guy is messed up. I think it actually comes out as a white block. I haven't seen that anomaly in any other game I tried.

I will pull up the game and take a picture in the next day or so.

_________________
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: Apple II on an FPGA
PostPosted: Sun Jul 21, 2013 11:08 pm 
Offline
User avatar

Joined: Sat Sep 29, 2012 10:15 pm
Posts: 904
I was wrong about the anomaly... It is even weirder then what I thought!

The image of the running guy is fine, but it does not get erased, leaving a trail of shapes behind it...

My camera's battery died; I will add a picture as soon as I can.

_________________
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: Apple II on an FPGA
PostPosted: Wed Jul 31, 2013 7:26 pm 
Offline
User avatar

Joined: Sat Sep 29, 2012 10:15 pm
Posts: 904
Here is a photo. The little guy just leaves a trail behind him. This is the only game I found that fails in this particular way. One possibility is that I used Arlet's core from a couple of years back, probably before he found a few issues using a test suite more recently.
Attachment:
DSCN1433.resized.JPG
DSCN1433.resized.JPG [ 111.5 KiB | Viewed 3088 times ]

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


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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: