Skip to main content
Home▸ Forums▸ 68kMLA▸ Possibly writing an emulator... of sorts — #9
Post #9 by dav7
Source Forum68kMLA
CategoryDevelopment
Post DateFri, 19 Dec 2008 - 06:21
Original URLhttps://68kmla.org/bb/threads/possibly-writing-an-emulator-of-sorts.15940/
Post
Ah. I see what you mean.

Well, since this is merely because I want to write one, I'd probably want the frequency to represent how often I want the "execute" loop to run, so, at 1MHz, the execute loop would run 1 million times per second.

That doesn't mean the whole program will be run 1 million times per second - I just want single instructions to be executed at each "cycle".

Although now I realize that it's kinda hard to slow code execution down to an instructional/cyclic level without designing the whole CPU myself, plus take everything else you've mentioned into account, so I'm not really sure if I want to do this anymore :/

I guess the two things I'd probably want to do now would be:

- See how Toolbox ROM and bootloader procedures on the Macintosh work and possibly make something that boots up using these routines, or

- Actually think about designing some kind of language (probably not an assembly language, because I'd have to implement quite a few instructions to make my "emulator" of sorts useful)

I'm thinking option #1 would be generally more interesting, both to myself and to others, since real macs would be able to run it :p but would it be legal?

-dav7