esq5505.cpp: Make the VFX family of keyboards' RAM non-volatile. #14341
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The VFX family of keyboards have a 3V lithium battery that keeps their RAM powered, which makes it effectively non-volatile.
Each has 64 kBytes of OS RAM (2 * 62256 32k x 8 SRAM). The VFX-SD and SD-1 have a base amount of sequencer memory, 64 kB in 2 * 62256 SRAM chips, mapped 0x330000 .. 0x33ffff.
Both of those can also accommodate the "SQX-70" sequencer memory expansion, which is simply 2 * 621001, 128k x 8 SRAM chips for another 256 kB of sequencer RAM, mapped 0x340000 .. 0x37ffff.
The SQX-70 is included by default in the SD-1/32 voice; and it's also included by default in the emulated vfxsd and sd1 devices as well as the sd132.
This PR:
corrects the end address of Sequencer RAM that is mapped in the VFXSD memory map
adds the device_nvram_interface to the esq5505_state class, but disabled by default
enabled nvram for the VFX family of devices, in which case it loads and stores:
for a total of 64 kBytes for the VFX / 384 kBytes for the VFX-SD, SD-1 and SD-1/32