You can support the development on the Github Sponsors page.


WIP > PMEM TEST


short description
made by test
uploaded by btco
added:
updated:
download cartridge
- CLICK TO PLAY -

2


PMEM broken with saveid? Repro:

1. Use up/down to set pmem(0) to some value.
2. Reset game or reload page.

OBSERVED: pmem(0) returns to 0.
EXPECTED: pmem(0) retains same value.

This only happens for carts with "saveid:" set. If it's not set, it works.

Comments


Nesbox

aaa, I'm sorry, but I'm going to remove banks for Code with the next release, banks will work with Sprites/Map/Sound only...
pls don't use code banks

StinkerB06

@Nesbox Can you make it so that older pro carts can have the code banks turned into code tabs? There are cartridges using multiple code banks, Megaman TC uses the banks for gameplay code.

btco

Cool! So code will be limited to a single 64K bank?

Nesbox

@btco yes, a lot of problems with the code loading from the banks

masternama

@btco It works!

StinkerB06

@masternama This pmem() issue is specific to at least Google Chrome.

btco

Yeah, seems to only affect Chrome...

masternama

@Nesbox @btco @StinkerB06

Before: I set pmem(0)=8.
[Click restart icon to reload page]
After: pmem API code is not saved page - pmem(0)=0

masternama

(pmem gets save loss)


Post comment