6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Wed May 22, 2024 12:33 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Jun 27, 2016 10:28 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
After fighting with WDC's simulator for a while I got fed up and wrote a simple W65C816 emulator in C++ which compiles under Windows, Ubuntu and Ubuntu Mate on a Raspberry Pi and supports a much bigger address space.

I've also ported the core C++ part to a Diligent ChipKIT WiFire (a 200Mhz PIC32MZ board with 512K of RAM and 2M of Flash ROM) which can simulate a much bigger (and probably faster) system than a real W65C816SXB for a third of the cost.

The code is here https://github.com/andrew-jacobs/emu816

Its not perfect and there is no decimal mode or I/O yet but its useful for tracing ROM code in places that the SXBs don't let you get to easily. I shall continue adding features as I work on my 65C816 code.

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 28, 2016 8:06 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10802
Location: England
Nice! It would be interesting to get a ballpark figure for the performance you get.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 28, 2016 4:40 pm 
Online

Joined: Thu Jan 21, 2016 7:33 pm
Posts: 270
Location: Placerville, CA
Awesome, we've been sorely in need of options for 816 simulators. Once it gets some basic I/O I'll have to give it a try with one of my projects :)


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 28, 2016 4:44 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10802
Location: England
A thought: in the absence of an 816 test suite, it should be possible to test emu816 against lib65816.


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 29, 2016 3:11 pm 
Offline

Joined: Sat Dec 13, 2003 3:37 pm
Posts: 1004
I skimmed the code, looks nice and clean. I think the way you wrote it was clever.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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: