🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by michael Wed, 08 Apr 1992 20:35
Help: Memory control for another thread
#597
Author: michael
Date: Wed, 08 Apr 1992 20:35
33 lines
1617 bytes
I need help with something.

I want to do an emulation of another 68000 based machine. I've decided to
go at the hardware level, and really simulate the other machine.

The idea is that I will have several threads, one will be executing the
native code for the other machine, and accessing memory; and a second
one that will start up the first one, set up its memory map so that the
addresses for #1 that correspond to hardware are trapped by the #2,
and it will then return the results to the first one.

I need help with this.

Specifically, what I've come up with so far is that I can mark addresses
as not readable or not writable, so that an attempt will trap, and I can
set the thread exception to be my other thread. But I still need to determine
what address was being accessed, and if it was a write, what value was going
there; or if it was a read, I need to be able to return a value. This is
what I don't know how to do.

Any ideas?

		Michael
-- 
		Michael Gersten		michael@stb.info.com
HELLO! I'm a signature virus! Join in the fun and copy me into yours!
ex:.-1,. w $HOME/.signature

-- 
		Michael Gersten		michael@stb.info.com
HELLO! I'm a signature virus! Join in the fun and copy me into yours!
ex:.-1,. w $HOME/.signature
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads