Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Rom Hacking: hukka | 2 guests
Acmlm's Board - I2 Archive - Rom Hacking - 65816 Emulator
  
User name:
Password:
Reply:
 

UserPost
MathOnNapkins
Posts: 134/2189
While I probably have enough info at this point to write one sans the SPC, I figure why bother when there are plenty of good ones out there already?

On the other hand, I don't know if there's one written in java, but I'm just not interested in writing one. Someone with more free time can do that .

Edit:

I finally got some webspace so maybe I can have this up in a few days when I get more time.
HyperLamer
Posts: 511/8210
So it's not a SNES emulator, just a 65816 emulator. Cool. That would be the base of an emu, once you've got that you're well on the way to making one (though with the SPC700 being another CPU entirely, you're really only halfway there).
MathOnNapkins
Posts: 133/2189
Yeah that's exactly what it does. You have step by step control of the processor. Importantly, you can modify memory values and read them between instructions, as well as alter any of the registers. I also forgot to mention that to use it with an snes rom you'd need to get rid of the 512 byte header. They make address calculations messy anyways, who needs em.

if you want them just e-mail me at dwaggone@indiana.edu. I don't currently have any webspace to host them at.

It's in 4 .java files: WDC65816.java, AddressModes.java, Opcodes.java, and GenericFileIO.java
Euclid
Posts: 47/193
I'll be interested in that.

Does it have the function to step through instructions?
MathOnNapkins
Posts: 128/2189
A few months ago I was working on a 65816 Emulation program meant to work with SNES roms. While it is not completely integrated to work as an snes would, it nearly perfectly emulates all the instructions and I think it would be helpful for those learning ASM in order to test out their roms and see how they work. Or you can write your own roms if you're comptetent enough.

So, would anyone be interested in having this? It's in the form of a few java files:

Notes:

Things it doesn't support -

1.NMI, IRQ, and ABORT vectors. Only the Initial Vector is implemented.
2. SPC communication. If you hit a loop that waits for the SPC you'll have to manually increment the Program counter. Same with NMI wait loops.
3. The ROM will not be memory mapped, which on the one hand makes it truly ROM in the sense that instructions are read only from ROM but also makes address calculations a nightmare, as you can see in the code.
4. Decimal mode is not supported, and Emulation (6502) mode is halfheartedly supported, but since most SNES games almost immediately switch to Native mode, I don't see the point of touching on it.
5. VRAM or any other sort of supplementary RAM besides SRAM. Special registers such as $4200 are treatedly simply as addresses.

Also, this is NOT an SNES emulator. It's a set of java classes that give a console display of the state of the "processor".
Acmlm's Board - I2 Archive - Rom Hacking - 65816 Emulator


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.004 seconds.