[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing emulator...



Mike Guidero <mike@bogus.net> wrote in message news:<unrcgd4ell7nef@corp.supernews.com>...
> Dosius wrote:
> 
> > Mike Guidero <mike@bogus.net> wrote in message
> > news:<unmvijtbqp48e0@corp.supernews.com>...
> >> But, hopefully the info is good for the guy writing the emulator.
> >> 
> >> Mike
> > 
> > I'm trying to make heads or tails of this, and I'll let you know
> > what's happening.  The CPU core is there, however, and I've got the
> > card in Slot 5 (is this correct?)
> > 
> > 44K CP/M 2.2 doesn't see the card yet, but I'm working on it.
> 
> Slot 4 is the usual place for the Z80 card, but 5 will work. (But if you 
> decide to emulate a IIe and add a smartport, then you have to locate that, 
> and it's usual slot is 5)
No Smartport for now, although a HDD can be enabled in slot 7.  Old
//e works but the get key routine in the //e BIOS sometimes eats
keystrokes, Version 0.7

> 
> Did I read correctly that you are doing 16-bit real mode x86 code with Turbo 
> C?  Any chance that will ever change?
Yes, possibly to djgpp.  I have tried this route, without success,
something caused a segfault.

> 
> I also might suggest some things, dunno if they are possible with what you 
> are doing, but a good way to keep things clean and flexible is to implement 
> slots as DLLs or shared objects.  That allows for you to simply have a 
> config file that tells what cards to put in what slots.
Be nice, but don't know...I can alter the code to configure the slots
because I/O is emulated on a slot-by-slot basic.

> 
> Z80 card might not be able to work this way with a minimalist interface 
> (getCx00(), putCx00(), getC0x0(), putC0x0(), devSelect(), getC800(), and 
> putC800()), but other more generic ones could.
> 
> A real implementation would allow for DMA, IRQ, and other hardware things to 
> be emulated.
> 
> Mike
I have a routine that would select which CPU is current, and execute
one op on the current CPU, 0.7, but still haven't figured out the Z80
card, all I have to go by is Apple Oasis 2.4 and what you have sent
me, and RTFM doesn't seem to say much for how the Softcard works at
the hardware level...