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 | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
MathOnNapkins

Math n' Hacks
Level: 67

Posts: 128/2189
EXP: 2495887
For next: 96985

Since: 03-18-04
From: Base Tourian

Since last post: 1 hour
Last activity: 32 min.
Posted on 04-28-04 01:52 AM Link | Quote
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".


(edited by MathOnNapkins on 04-27-04 04:54 PM)
Euclid

Cheep-cheep
Level: 23

Posts: 47/193
EXP: 65528
For next: 2195

Since: 03-15-04
From: Australia

Since last post: 24 days
Last activity: 7 days
Posted on 04-28-04 10:43 AM Link | Quote
I'll be interested in that.

Does it have the function to step through instructions?
MathOnNapkins

Math n' Hacks
Level: 67

Posts: 133/2189
EXP: 2495887
For next: 96985

Since: 03-18-04
From: Base Tourian

Since last post: 1 hour
Last activity: 32 min.
Posted on 04-28-04 11:02 AM Link | Quote
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
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 511/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 04-28-04 09:02 PM Link | Quote
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

Math n' Hacks
Level: 67

Posts: 134/2189
EXP: 2495887
For next: 96985

Since: 03-18-04
From: Base Tourian

Since last post: 1 hour
Last activity: 32 min.
Posted on 04-28-04 09:42 PM Link | Quote
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.


(edited by MathOnNapkins on 05-03-04 06:30 AM)
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
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.019 seconds.