Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II Emulation » AppleWin: bug in save-state file for RamWorks card
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
AppleWin: bug in save-state file for RamWorks card [message #343526] Thu, 04 May 2017 16:54 Go to next message
TomCh is currently offline  TomCh
Messages: 242
Registered: November 2012
Karma: 0
Senior Member
Hi,

There's been some recent activity around the RamWorks memory card on this group, so I just wanted to put out an alert to anyone using (eg) "applewin.exe -r 127" in combination with save/load states files.

The bug occurs for >9 x 64K banks, and manifests as the memory not being loaded correctly from the save-state file.

You can manually fix the (malformed) save-state file by locating these 2 lines, and adding the "0x" prefix:

Num Aux Banks: 7F # [0,1..7F] 0=no aux mem, 1=128K system, etc
Active Aux Bank: 00 # [ 0..7E] 0=memaux

->

Num Aux Banks: 0x7F # [0,1..7F] 0=no aux mem, 1=128K system, etc
Active Aux Bank: 0x00 # [ 0..7E] 0=memaux

I'll put out a new release soon to fix this.

Tom
Re: AppleWin: bug in save-state file for RamWorks card [message #343527 is a reply to message #343526] Fri, 05 May 2017 01:27 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: Brian Patrie

On 2017-05-04 15:54, TomCh wrote:
> Num Aux Banks: 0x7F # [0,1..7F] 0=no aux mem, 1=128K system, etc

This raises the question in my mind: Is there a way to specify no auxmem
for IIe,IIee? (I notice that -r 0 doesn't.)
Re: AppleWin: bug in save-state file for RamWorks card [message #343528 is a reply to message #343527] Fri, 05 May 2017 11:14 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: James Davis

Hi Brian,

On Thursday, May 4, 2017 at 10:27:21 PM UTC-7, Brian Patrie wrote:
> On 2017-05-04 15:54, TomCh wrote:
>> Num Aux Banks: 0x7F # [0,1..7F] 0=no aux mem, 1=128K system, etc
>
> This raises the question in my mind: Is there a way to specify no auxmem
> for IIe,IIee? (I notice that -r 0 doesn't.)

PR# 0-2 and 4-7 but not 3; 3 turns AuxMem on, anything else turns it off. There are also Peek/Poke addresses that turn the language card on or off. Look in the manual or on the Beagle Bros Peeks/Pokes/Calls chart for those. From the keyboard: Escape Control-Q turns it off; Escape 4 turns on 40-columns; Escape 8 turns on 80-columns.

James Davis
Re: AppleWin: bug in save-state file for RamWorks card [message #343529 is a reply to message #343526] Fri, 05 May 2017 11:16 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: James Davis

Hi Tom,

On Thursday, May 4, 2017 at 1:54:17 PM UTC-7, TomCh wrote:
> Hi,
>
> There's been some recent activity around the RamWorks memory card on this group, so I just wanted to put out an alert to anyone using (eg) "applewin.exe -r 127" in combination with save/load states files.
>
> The bug occurs for >9 x 64K banks, and manifests as the memory not being loaded correctly from the save-state file.
>
> You can manually fix the (malformed) save-state file by locating these 2 lines, and adding the "0x" prefix:
>
> Num Aux Banks: 7F # [0,1..7F] 0=no aux mem, 1=128K system, etc
> Active Aux Bank: 00 # [ 0..7E] 0=memaux
>
> ->
>
> Num Aux Banks: 0x7F # [0,1..7F] 0=no aux mem, 1=128K system, etc
> Active Aux Bank: 0x00 # [ 0..7E] 0=memaux
>
> I'll put out a new release soon to fix this.
>
> Tom

Thanks for that.

James Davis
Re: AppleWin: bug in save-state file for RamWorks card [message #343530 is a reply to message #343527] Fri, 05 May 2017 13:53 Go to previous messageGo to next message
TomCh is currently offline  TomCh
Messages: 242
Registered: November 2012
Karma: 0
Senior Member
On Friday, May 5, 2017 at 6:27:21 AM UTC+1, Brian Patrie wrote:
> On 2017-05-04 15:54, TomCh wrote:
>> Num Aux Banks: 0x7F # [0,1..7F] 0=no aux mem, 1=128K system, etc
>
> This raises the question in my mind: Is there a way to specify no auxmem
> for IIe,IIee? (I notice that -r 0 doesn't.)

My understanding is that you are asking if the emulated IIe/IIee models within AppleWin can be configured to not have any aux memory. EG. either an empty aux slot or an 80 col card with just 1K for the aux text page.

The answer is currently no.

Currently there's no way to select this config from AppleWin's UI (either command or GUI).

And if you edit the save-state to try to force this, then you'll get undefined behaviour :)

Tom
Re: AppleWin: bug in save-state file for RamWorks card [message #343531 is a reply to message #343530] Sat, 06 May 2017 02:21 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: Brian Patrie

On 2017-05-05 12:53, TomCh wrote:
> On Friday, May 5, 2017 at 6:27:21 AM UTC+1, Brian Patrie wrote:
>> On 2017-05-04 15:54, TomCh wrote:
>>> Num Aux Banks: 0x7F # [0,1..7F] 0=no aux mem, 1=128K system, etc
>>
>> This raises the question in my mind: Is there a way to specify no auxmem
>> for IIe,IIee? (I notice that -r 0 doesn't.)
>
> My understanding is that you are asking if the emulated IIe/IIee models within AppleWin can be configured to not have any aux memory. EG. either an empty aux slot or an 80 col card with just 1K for the aux text page.
>
> The answer is currently no.
>
> Currently there's no way to select this config from AppleWin's UI (either command or GUI).
>
> And if you edit the save-state to try to force this, then you'll get undefined behaviour :)
>
> Tom

Ooh! Undefined behaviour! I just might have to play with that (after
syncing my backup, of course). ;)

Brian
Re: AppleWin: bug in save-state file for RamWorks card [message #343532 is a reply to message #343527] Sat, 06 May 2017 06:21 Go to previous message
sicklittlemonkey is currently offline  sicklittlemonkey
Messages: 570
Registered: October 2012
Karma: 0
Senior Member
On Friday, 5 May 2017 17:27:21 UTC+12, Brian Patrie wrote:
> This raises the question in my mind: Is there a way to specify no auxmem
> for IIe,IIee? (I notice that -r 0 doesn't.)

If you actually requested this (which you haven't yet, officially) it would be a feature request for *less* functionality. Rare indeed! ; - )

Cheers,
Nick.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: AppleWin Manual (Neede/Wanted)
Next Topic: AppleWin command line
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Mar 19 04:18:48 EDT 2024

Total time taken to generate the page: 0.00575 seconds