6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 2:39 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Apr 26, 2024 7:48 pm 
Offline

Joined: Fri Apr 26, 2024 7:26 pm
Posts: 2
Not sure why I made this yet, but I enjoyed the process and now I feel a lot more comfortable with the 6502 instruction set

Available at: https://github.com/bencoder/6502

I added a basic console IO interface and got Wozmon working on it :)

Notes:
- Haven't done anything clever with opcode decoding, just a big switch statement
- It passes the Klaus functional tests
- Cycle counts are probably not accurate, haven't been thoroughly tested (just basing it on memory read/writes, with +1 adjustment when paging in indexed addressing modes)
- illegal/undocumented opcodes haven't been implemented
- undefined behaviour (I think that's only the weird decimal mode flags) hasn't been implemented/tested

Comments/Criticism welcome :)


Top
 Profile  
Reply with quote  
PostPosted: Sat May 04, 2024 12:59 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
Welcome! Nice idea - haven't tried it though. Should it be relative easy to make up an HTML page, and serve the emulator from github directly as an in-browser emulator?


Top
 Profile  
Reply with quote  
PostPosted: Tue May 07, 2024 6:08 pm 
Offline

Joined: Sat Oct 28, 2023 7:57 pm
Posts: 22
Location: Missouri
Neat! How fast can you "clock" it? It looks like it's set to 1 MHz, but can it go faster?


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 05, 2024 5:10 pm 
Offline

Joined: Fri Apr 26, 2024 7:26 pm
Posts: 2
Sorry for the delayed response

Quote:
How fast can you "clock" it? It looks like it's set to 1 MHz, but can it go faster?

It goes about 70MHz unrestricted while running the test suite (on a 2020 Macbook Air M1)

Quote:
Should it be relative easy to make up an HTML page, and serve the emulator from github directly as an in-browser emulator?

Yeah that might be a nice idea to show it off better - thanks


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 8 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: