Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > RR memory map during freeze?
2016-02-09 18:12
tlr

Registered: Sep 2003
Posts: 1790
RR memory map during freeze?

I'm a bit confused about the memory map in the freeze state. Unfortunately I do not have a real RR so I can't analyse it myself. Anyone cares to enlighten me?

Jens explicitly states in Inside_Replay.txt that no RAM can be visible in the $8000-$9FFF area during freeze, but that $DE00 (or $DF00) is possible.
Quote:
Freeze:
ROM is mapped to $e000-$ffff, bank 0 is active directly after Freeze. Writing to bits 0 and 1 of the $de00 register will have no effect on GAME and EXROM.
RAM can be selected and used in $df00 or $de02, respectively, but not in $8000. Banking bits work, so you have full read access to the ROM, and access to up to four RAM pages with the AllowBank bit set (minus 2 bytes if REU
compatible bit is set).
Cz states this in his Inside_Replay_Essentials.txt:
Quote:
Being in freeze mode allows ROM banks to be mapped by $de00 as before but of course they are mapped to $e000. RAM can only be accessed on the free I/O1 area.
In spite of this it seems vice (r30505) has RAM enabled at both $8000 and $DE00 (or $DF00) during the frozen state before acking it.

From examining the 1541U2 code (3.0beta5) it looks like no RAM can be visible at $DE00 (or $DF00) during freeze which also seems to be wrong.

I was hoping that RAM at $DE00 was mapped in automatically in the freeze state so I could save regs there to avoid trashing the stack unnecessarily.

Which is it?
2016-02-09 18:52
chatGPZ

Registered: Dec 2001
Posts: 11386
drop a testprog into the repo and i'll check it on the real hw :) (you want to check if ram can be read at $8000, and if it can be written to at either $8000 and $e000). iirc its like jens' description says.... the existing tests omit the freeze mode, so i wouldnt be surprised if that is broken in VICE.
2016-02-09 19:02
tlr

Registered: Sep 2003
Posts: 1790
The really interesting bit is whether RAM is at $DE00 already from the start. Jens just states that "RAM can be selected".

I'll see if I can whip up a small test program.
2016-02-09 21:41
tlr

Registered: Sep 2003
Posts: 1790
There: testprogs/C64/carts/rr-freeze/.

The test first lets you select $DE01 bits, then tries to fill $DExx and $DFxx with an increasing pattern. It will then allow you to freeze.

Upon freezing, $DExx and $DFxx will be preserved to C64 ram, then modified and preserved again. Lastly freeze mode will be acked and $9Exx + $9Fxx will be read and finally the whole lot will be dumped to screen.

I believe $DE01=$40 and $DE01=$00 are the interesting cases.
2016-02-09 21:52
Count Zero

Registered: Jan 2003
Posts: 1932
Will see to check your test commit at the weekend.

*Yieks* the essentials.txt looks quite wasted :)

Cannot really remember the setup when in "freeze state" and only the "maxmachine memory setup" is active with an RR attacged. Also emulations on various hardwares will likely largely differ. That is actually one of the test cases I wanted to cover on future Action Replay & Clones Acid Ramtest v0.1 versions. Never really got on to it - as always :(

Also I am not sure about the influence the mode selection using the AllowBank bit would make but whenever that makes a difference we know whom to beat down excessively :)

Will report back whenever I find time for some more tests as well.
2016-02-10 15:12
chatGPZ

Registered: Dec 2001
Posts: 11386
i can see differences between emu and real hw.... however, it would be nice if you could explain what exactly this hexdump is trying to tell me :) what should it look like when there is ram and what should it look like when there is none?
2016-02-10 18:10
tlr

Registered: Sep 2003
Posts: 1790
Quote: i can see differences between emu and real hw.... however, it would be nice if you could explain what exactly this hexdump is trying to tell me :) what should it look like when there is ram and what should it look like when there is none?

@gpz: hmm, yes maybe it's a bit to crude. :)
Basically each "sample" is presented in hex rows of two.

Initially $9Exx and $9Fxx is prefilled with an incrementing pattern. (differnt for each).

First two shows the $de00 area directly after freeze.
The next two shows the $de00 area after trying to eor that area with #$ff.
the next two shows the $de00 area read back through $9e00 in the normal memory map.

After this six more rows, but for $df00 instead.

If REU-Comp is set only the upper part is meaningful, the lower part should be unconnected space.
If REU-Comp is not set, only the lower part is meaningful.

Did that make any sense at all?


This was just a quickie to verify if RAM is present already at the freeze entry. I will try to improve the test to check for RAM/ROM/banking in a more generic way.
2016-02-10 18:51
chatGPZ

Registered: Dec 2001
Posts: 11386
check the readme i added in the repo... if i interpreted the results correctly there is indeed no ram in i/o space in freeze mode.
2016-02-10 19:17
tlr

Registered: Sep 2003
Posts: 1790
Interesting! Thanks for interpreting my cryptic descriptions and deciphering the test program output. :)

I noticed you tested on the Nordic Replay btw. Supposedly the control regs on that is slightly altered compared to Retro Replay just to accommodate the Atomic Power. I assume the alterations are just extra stuff. Do you know which by any chance?
2016-02-10 21:30
Count Zero

Registered: Jan 2003
Posts: 1932
Huh - after querying Grp soon will try to make heads and tails of this on RR/NP/U1541v1 - looks extensible.

And wow - there IS a difference on Atomic to (new) Nordic Power (clone)?
Or is it some implementation thing? Got an original Atomic/Nordic Power here to check against the "clone Nordic Power" carts Jens produced. Will report back ASAP.
2016-02-10 22:19
tlr

Registered: Sep 2003
Posts: 1790
Quote: Huh - after querying Grp soon will try to make heads and tails of this on RR/NP/U1541v1 - looks extensible.

And wow - there IS a difference on Atomic to (new) Nordic Power (clone)?
Or is it some implementation thing? Got an original Atomic/Nordic Power here to check against the "clone Nordic Power" carts Jens produced. Will report back ASAP.


What I ment is that there is a difference between RR and Nordic Replay. Jens states so here: http://wiki.icomp.de/wiki/Nordic_Replay , but he doesn't state what the difference is.

Meanwhile I extended the freeze test to try to present the detected mapping in a more sane way. Ongoing work...
2016-02-10 23:17
chatGPZ

Registered: Dec 2001
Posts: 11386
the difference is that the nordic/atomic power cartridge has one additional mapping mode, see here. basically set 0xde00 to 0x22 to enable 16k game mode with 8k rom at 8000 and 8k ram at a000.
the values used for this mode are invalid (and unused) for regular AR/RR.
i can also try on an actual retro replay, but unless you are using said mapping modes it shouldnt make a difference :)
2016-02-11 20:00
tlr

Registered: Sep 2003
Posts: 1790
Interesting. I hadn't seen that documented before.

Meanwhile I've updated rr-freeze quite a lot so it can now visualize the mapping. It looks rather weird in vice so I'd be very interested to see what it does on your hw if you have the time.
2016-02-12 00:14
chatGPZ

Registered: Dec 2001
Posts: 11386
*please* add more elaborated description in the readme =)
2016-02-12 07:35
tlr

Registered: Sep 2003
Posts: 1790
Will do. Going away travelling for a week starting tomorrow though.
Short story: memory prefilled with tags so the program can determine which bank it sees in a particular area. Bank scanning is done with bit 1 and 0 of de00 set to 00.
2016-02-12 11:30
tlr

Registered: Sep 2003
Posts: 1790
I added a little more information to the readme. From what i can see in vice it looks like the exrom/game bits aren't properly disabled when in the frozen state. And should banking the E000 rom really be possible there?

I have a list of features to add but it'll be a week or two. Feel free to ask questions so i know what's missing the most in the docs.
2016-02-23 12:29
tlr

Registered: Sep 2003
Posts: 1790
I've improved the program further, and also added a save feature with an offline analysis tool, see below.

What it doesn't check but perhaps ought to:
- what happens with the mapping after KILL in the "random" state.
- what happens with the mapping _during_ when the ack bit is set =1.

From the dump below you can at least see the anomaly that bank EXROM/GAME selection is still possible, even when in the freezed state. This is supposedly not the case on the real HW although I don't have it to test.

Questions? Comments?

link: testprogs/C64/carts/rr-freeze/

analyzing file: dumps/dump_x64_r30583.prg
  program: RR-FREEZE R05, format: 0

<RESET>

--- RST ---
 detected initial state:
  9E:A*  BE:-   DE:-   DF:A*  FE:- 

 scan of all banks/modes:
      x01xx000 -> $DE00 (RAM)    x00xx000 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx001 -> $DE00 (RAM)    x00xx001 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    A* B* C* D* E* F* G* H* 
  BE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx010 -> $DE00 (RAM)    x00xx010 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx011 -> $DE00 (RAM)    x00xx011 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  FE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
-------------

$40 -> $DE01  (REU-Comp=1, NoFreeze=0, AllowBank=0)

--- CNFD ---
 detected initial state:
  9E:A*  BE:-   DE:A*  DF:-   FE:- 

 scan of all banks/modes:
      x01xx000 -> $DE00 (RAM)    x00xx000 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx001 -> $DE00 (RAM)    x00xx001 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    A* B* C* D* E* F* G* H* 
  BE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx010 -> $DE00 (RAM)    x00xx010 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx011 -> $DE00 (RAM)    x00xx011 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
-------------

$88 -> $DE00  ("random" mapping, bank 5 in ROM)
$8C -> $DE00 (kill)

<FREEZE>

--- FRZ ---
 detected initial state:
  9E:0   BE:-   DE:0   DF:-   FE:A*

 scan of all banks/modes:
      x01xx000 -> $DE00 (RAM)    x00xx000 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx001 -> $DE00 (RAM)    x00xx001 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    A* B* C* D* E* F* G* H* 
  BE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx010 -> $DE00 (RAM)    x00xx010 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx011 -> $DE00 (RAM)    x00xx011 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
-------------

$60 -> $DE00  (ACK)
$20 -> $DE00

--- ACKD ---
 detected initial state:
  9E:0*  BE:-   DE:0   DF:-   FE:- 

 scan of all banks/modes:
      x01xx000 -> $DE00 (RAM)    x00xx000 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx001 -> $DE00 (RAM)    x00xx001 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    A* B* C* D* E* F* G* H* 
  BE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx010 -> $DE00 (RAM)    x00xx010 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx011 -> $DE00 (RAM)    x00xx011 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
-------------


LEGEND:
   0-7   -> RAM banks 0-7, an '*' means read only.
   A-H   -> ROM banks 0-7, should have an '*', otherwise it is writable (!)
   -     -> no cart detected
   ?     -> mapping mismatch (e.g $de not mapped to $9e and similar)
2016-02-23 18:52
tlr

Registered: Sep 2003
Posts: 1790
Need help dumping on RR and 1541U2. If you feel you can spare the time, please send me a PM for instructions.

Here's a dump from hoxs v1.0.8.7:
analyzing file: dumps/dump_hoxs64_v1087.prg
  program: RR-FREEZE R05, format: 0

<RESET>

--- RST ---
 detected initial state:
  9E:A*  BE:-   DE:-   DF:A*  FE:- 

 scan of all banks/modes:
      x01xx000 -> $DE00 (RAM)    x00xx000 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx001 -> $DE00 (RAM)    x00xx001 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx010 -> $DE00 (RAM)    x00xx010 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx011 -> $DE00 (RAM)    x00xx011 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  FE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
-------------

$40 -> $DE01  (REU-Comp=1, NoFreeze=0, AllowBank=0)

--- CNFD ---
 detected initial state:
  9E:A*  BE:-   DE:A*  DF:-   FE:- 

 scan of all banks/modes:
      x01xx000 -> $DE00 (RAM)    x00xx000 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx001 -> $DE00 (RAM)    x00xx001 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx010 -> $DE00 (RAM)    x00xx010 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx011 -> $DE00 (RAM)    x00xx011 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
-------------

$88 -> $DE00  ("random" mapping, bank 5 in ROM)
$8C -> $DE00 (kill)

<FREEZE>

--- FRZ ---
 detected initial state:
  9E:A*  BE:-   DE:A*  DF:-   FE:A*

 scan of all banks/modes:
      x01xx000 -> $DE00 (RAM)    x00xx000 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
      x01xx001 -> $DE00 (RAM)    x00xx001 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
      x01xx010 -> $DE00 (RAM)    x00xx010 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
      x01xx011 -> $DE00 (RAM)    x00xx011 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
-------------

$60 -> $DE00  (ACK)
$20 -> $DE00

--- ACKD ---
 detected initial state:
  9E:0   BE:-   DE:0   DF:-   FE:- 

 scan of all banks/modes:
      x01xx000 -> $DE00 (RAM)    x00xx000 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx001 -> $DE00 (RAM)    x00xx001 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx010 -> $DE00 (RAM)    x00xx010 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx011 -> $DE00 (RAM)    x00xx011 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* B* C* D* E* F* G* H*    A* B* C* D* E* F* G* H* 
-------------


LEGEND:
   0-7   -> RAM banks 0-7, an '*' means read only.
   A-H   -> ROM banks 0-7, should have an '*', otherwise it is writable (!)
   -     -> no cart detected
   ?     -> mapping mismatch (e.g $de not mapped to $9e and similar)
2016-02-25 17:16
tlr

Registered: Sep 2003
Posts: 1790
Impetigo kindly contributed data from his Retro Replay cartridge, which gives some rather interesting discrepancies.

For instance, this passage from Jens' document doesn't seem to hold up:
Freeze:
ROM is mapped to $e000-$ffff, bank 0 is active directly after Freeze. Writing
to bits 0 and 1 of the $de00 register will have no effect on GAME and EXROM.
RAM can be selected and used in $df00 or $de02, respectively, but not in
$8000. Banking bits work, so you have full read access to the ROM, and access
to up to four RAM pages with the AllowBank bit set (minus 2 bytes if REU
compatible bit is set). You should leave this memory map ASAP by setting bit
6 of $de00, because C-64 RAM in the $e000 area is not available, and you
don't have control of the GAME and EXROM lines.

Also note the strange banking behaviour of the kernal area in ultimax mode with the ram bit set.

analyzing file: dumps/dump_rr_40_impetigo.prg
  program: RR-FREEZE R05, format: 0

<RESET>

--- RST ---
 detected initial state:
  9E:A*  BE:-   DE:-   DF:A*  FE:- 

 scan of all banks/modes:
      x01xx000 -> $DE00 (RAM)    x00xx000 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx001 -> $DE00 (RAM)    x00xx001 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    -  -  -  -  -  -  -  -  
  BE: A* A* A* A* E* E* E* E*    A* B* C* D* E* F* G* H* 
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: 0  0  0  0  0  0  0  0     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx010 -> $DE00 (RAM)    x00xx010 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx011 -> $DE00 (RAM)    x00xx011 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: 0  0  0  0  0  0  0  0     -  -  -  -  -  -  -  -  
  FE: A* A* A* A* E* E* E* E*    A* B* C* D* E* F* G* H* 
-------------

$40 -> $DE01  (REU-Comp=1, NoFreeze=0, AllowBank=0)

--- CNFD ---
 detected initial state:
  9E:A*  BE:-   DE:A*  DF:-   FE:- 

 scan of all banks/modes:
      x01xx000 -> $DE00 (RAM)    x00xx000 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx001 -> $DE00 (RAM)    x00xx001 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    -  -  -  -  -  -  -  -  
  BE: A* A* A* A* E* E* E* E*    A* B* C* D* E* F* G* H* 
  DE: 0  0  0  0  0  0  0  0     -  -  -  -  -  -  -  -  
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx010 -> $DE00 (RAM)    x00xx010 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx011 -> $DE00 (RAM)    x00xx011 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     -  -  -  -  -  -  -  -  
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* A* A* A* E* E* E* E*    A* B* C* D* E* F* G* H* 
-------------

$88 -> $DE00  ("random" mapping, bank 5 in ROM)
$8C -> $DE00 (kill)

<FREEZE>

--- FRZ ---
 detected initial state:
  9E:-   BE:-   DE:-   DF:-   FE:A*

 scan of all banks/modes:
      x01xx000 -> $DE00 (RAM)    x00xx000 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* A* A* A* E* E* E* E*    A* B* C* D* E* F* G* H* 
      x01xx001 -> $DE00 (RAM)    x00xx001 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* A* A* A* E* E* E* E*    A* B* C* D* E* F* G* H* 
      x01xx010 -> $DE00 (RAM)    x00xx010 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* A* A* A* E* E* E* E*    A* B* C* D* E* F* G* H* 
      x01xx011 -> $DE00 (RAM)    x00xx011 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* A* A* A* E* E* E* E*    A* B* C* D* E* F* G* H* 
-------------

$60 -> $DE00  (ACK)
$20 -> $DE00

--- ACKD ---
 detected initial state:
  9E:0*  BE:-   DE:0   DF:-   FE:- 

 scan of all banks/modes:
      x01xx000 -> $DE00 (RAM)    x00xx000 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx001 -> $DE00 (RAM)    x00xx001 -> $DE00 (ROM)
  9E: 0* 1* 2* 3* 0* 1* 2* 3*    -  -  -  -  -  -  -  -  
  BE: A* A* A* A* E* E* E* E*    A* B* C* D* E* F* G* H* 
  DE: 0  0  0  0  0  0  0  0     -  -  -  -  -  -  -  -  
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx010 -> $DE00 (RAM)    x00xx010 -> $DE00 (ROM)
  9E: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     A* B* C* D* E* F* G* H* 
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
      x01xx011 -> $DE00 (RAM)    x00xx011 -> $DE00 (ROM)
  9E: 0  1  2  3  0  1  2  3     A* B* C* D* E* F* G* H* 
  BE: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  DE: 0  0  0  0  0  0  0  0     -  -  -  -  -  -  -  -  
  DF: -  -  -  -  -  -  -  -     -  -  -  -  -  -  -  -  
  FE: A* A* A* A* E* E* E* E*    A* B* C* D* E* F* G* H* 
-------------


LEGEND:
   0-7   -> RAM banks 0-7, an '*' means read only.
   A-H   -> ROM banks 0-7, should have an '*', otherwise it is writable (!)
   -     -> no cart detected
   ?     -> mapping mismatch (e.g $de not mapped to $9e and similar)
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Magic/Nah-Kolor
JackAsser/Booze Design
bepp/ΤRIΛD
csabanw
Courage
Guests online: 108
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.7)
4 Acidchild  (9.7)
5 Cash  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.088 sec.