Working visual simulation of a 6502 chip

Status
Not open for further replies.

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
I'll have to play with this later, the 6502 was the first CPU I learned assembly for, for Atari 800 and C=64 coding.

Edit: Like this
seadragonc64.png


(Yes, I'm old :) )
 
Last edited:

Leros

Lifer
Jul 11, 2004
21,867
7
81
Pretty cool, I always wondered if newer tech could visualize an entire CPU (of older tech)

I don't see why not. Some of the older processors has ~10,000-100,000 transistors. It shouldn't be too hard to simulate that with a modern processor.
 

Train

Lifer
Jun 22, 2000
13,587
82
91
www.bing.com
I don't see why not. Some of the older processors has ~10,000-100,000 transistors. It shouldn't be too hard to simulate that with a modern processor.

The bottleneck at this point is more the screen real estate required to show anything useful and/or traceable
 

Leros

Lifer
Jul 11, 2004
21,867
7
81
The bottleneck at this point is more the screen real estate required to show anything useful and/or traceable

An algorithm to zoom in or out wouldn't be too hard. I can think of several ways to have different levels of zoom.

Signals can easily be logged, although the log file size would be rather large.
 

Train

Lifer
Jun 22, 2000
13,587
82
91
www.bing.com
An algorithm to zoom in or out wouldn't be too hard. I can think of several ways to have different levels of zoom.
true.

Signals can easily be logged, although the log file size would be rather large.

Why log it? Just keep a track of what the input was. You can "catch up" from any starting point to any point down the road pretty dang quickly. IIRC it was a 1.5 mhz CPU, lets say a 3 ghz multi core CPU today, would be able to do hours worth of 6502 crunching in a matter of seconds
 

Leros

Lifer
Jul 11, 2004
21,867
7
81
true.



Why log it? Just keep a track of what the input was. You can "catch up" from any starting point to any point down the road pretty dang quickly. IIRC it was a 1.5 mhz CPU, lets say a 3 ghz multi core CPU today, would be able to do hours worth of 6502 crunching in a matter of seconds

You could argue that. I guess it would depend on what kind of analysis you want to run later.
 

Train

Lifer
Jun 22, 2000
13,587
82
91
www.bing.com
You could argue that. I guess it would depend on what kind of analysis you want to run later.

but then as soon as I clicked submit I thought of the random function. There would probably at least have to be logged randoms (unless the 6502 random was THAT predictable)
 

Leros

Lifer
Jul 11, 2004
21,867
7
81
but then as soon as I clicked submit I thought of the random function. There would probably at least have to be logged randoms (unless the 6502 random was THAT predictable)

It would depend how the random function was seeded and how often it was seeded (once or for each call?). Assuming the random function was seeded based off CPU time, you could reconstruct the CPU time during your re simulation.
 
Status
Not open for further replies.