whscullin / apple2js

An Apple II emulator originally written in Javascript, now being converted to TypeScript
http://www.scullinsteel.com/apple2/
MIT License
438 stars 57 forks source link

Memory size? #215

Open timriker opened 4 months ago

timriker commented 4 months ago

It looks like there is a 384k memory card in slot 2 when in //e emulation.

Can the aux slot configuration be configured to max memory? Emulating something like this:

https://www.tindie.com/products/garrettswrkshp/ram2e-ii-gw4203b-8mb-ram-for-apple-iie/

iflan commented 4 months ago

Currently there is no UI for setting the size of the RAM card, but you can change it in code.

If you look at js/main2e.ts line 69, you can see that it actually sets up a 1M RAMFactor-compatible card. You should be able to to just change that 16 and have a 16 MB card. (I have not tried this.)

If you're using the new fancy preact UI (from index.html), then you need to change Slinky.tsx line 24.

timriker commented 4 months ago

Thanks!

I'm not sure what the difference is, as I don't own either, but the board I linked to goes in the AUX slot instead of slot 2 as //jse is configured. Under AppleWin with -r 127 there is no RAMFactor visible, but there is still 8M of ram available.

I seem to recall there is software that won't work well with 16M and only supports 8M, or 127 "pages" in the ram expansion.

Is there a way to add 8M to the AUX slot?

It might be nice to have the default //e image online configured that way.

whscullin commented 3 months ago

Yeah, we can probably bump that. The existing limit was based on old browser behaviors and the amount of storage required to serials the contents for saving and restoring state (which currently only partly works but is a ongoing goal).