Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Perl ZX Spectrum Emulator

by hardburn (Abbot)
on Dec 22, 2005 at 19:53 UTC ( #518619=note: print w/replies, xml ) Need Help??

in reply to Perl ZX Spectrum Emulator

I used to think that emulators were deep voodoo. Then I tried making one (Game Boy, which is a modified z80 processor). Turns out the hardest part is getting sound to work. If you just want to get the instruction set to work, you just need a big array to represent the memory, map the data into the right spots (cartidge data gets put into a given location in memory, etc.), then start doing each opcode, which basically ammounts to doing some simple operation (add two numbers together and store the result in register ax, etc.).

All the data you need for this is available to the public with a few moments of quality time with Google. The Game Boy is a simple platform, so it's a good place to start. It'll give you an idea of how CPUs work, and it's probably not as hard as you think.

"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://518619]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2022-01-29 14:39 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (74 votes). Check out past polls.