Login  •  Register


The time is now: Sun Aug 09, 2020 9:22 am

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 4 posts ]
Print view Previous topic  |  Next topic
Author Message
 Post subject: 68000 CPU simulator
PostPosted: Mon Jul 06, 2020 9:15 pm 
Offline
Mac Mechanic
User avatar

Joined: Mon Sep 15, 2014 7:59 pm
Posts: 193
I'm enhancing Basilisk II to run System 6. One task I struggled with is to read Macintosh SE 24 bit ROM to figure out how to override the compressed dispatch table directly before it get expanded by the ROM.

I found the logic that expands the compressed dispatch table. But my progress is SLOW. I wonder if anyone can recommend me a 68000 CPU simulator to run a snippet of 68K binary or assembly at will.

I want to debug it by executing the code rather than read and look up the assembly.

_________________
There is an App for that!
https://github.com/rickyzhang82


Top
 Profile  
Reply with quote Post a reply  
 Post subject: Re: 68000 CPU simulator
PostPosted: Tue Jul 07, 2020 4:57 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 3029
Location: Emaculation.com
Can you do it by running MACSBUG in Mini vMac or BII and just injecting and stepping through the code?


Top
 Profile  
Reply with quote Post a reply  
 Post subject: Re: 68000 CPU simulator
PostPosted: Tue Jul 07, 2020 10:12 pm 
Offline
Mac Mechanic
User avatar

Joined: Mon Sep 15, 2014 7:59 pm
Posts: 193
I found Easy68k as an assembler and a simulator. But it is painful to type the assembly from ROM file and replicate the data in the code.

What version of MacBugs I should use for System 6?

_________________
There is an App for that!
https://github.com/rickyzhang82


Top
 Profile  
Reply with quote Post a reply  
 Post subject: Re: 68000 CPU simulator
PostPosted: Tue Jul 07, 2020 11:14 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 3029
Location: Emaculation.com
I'd try either 6.2.x or 6.3.x -- these are the ones that were released during the System 6 timeframe or shortly afterwards. That said, I remember using 6.6.x on 68k Mac OS 7.6, and I'm pretty sure it worked on 7.1 as well, so you could try a more recent build and see if it works. An alternative would be TMON.

The nice thing about MACSBug is that it's scriptable, so you can write a quick loader to load your assembly and test it, and even dump the results to file.


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 4 posts ]


Who is online

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

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group