Quantcast
Channel: nesdev.org
Viewing all articles
Browse latest Browse all 785

Help with code from RAM

$
0
0
Hi!

Is the first time I write in this forum, but I've been reading for many years.

I'm making a multirom cartridge with a menu. I understand how to do it, but I'm not able to create the correct function to do the bank change on the cartridge.

Currently, on the cartridge I have a 4MB memory and Arduino NANO to intercept the change and send the RESET to the SNES. And the menu I've been doing with PVSnesLib. I'm doing the bank change with an SRAM access by writing the bank in the first address.

Everything works fine, except that the Arduino NANO is VERY SLOW, and I'm not able to capture the SRAM write correctly.

I would like continuing using the SRAM strategy, but I would need to change the code so that when executing the write in the SRAM it will pause the SNES and the cart pin state for a few moments to give the Arduino NANO time to capture the bank correctly.

I think the only way to do this is create an ASM routine that saves and executes some code from RAM, and then embed it in the C code. But I've been looking at how to do this in ASM and 😵‍💫.

Could you help me?

Thank!

PD: Sorry for my horrible english :(

Statistics: Posted by CristianCG — Sat Aug 24, 2024 10:45 am — Replies 1 — Views 190



Viewing all articles
Browse latest Browse all 785

Trending Articles