RAM stays in memory after reset (Development MSX Fora)MSX Resource Center MSX Info Update - Finnish MSX madness at its best           
            
English Nederlands Español Português Russian         
 Nieuws
   Voorpagina
  Nieuws archief
  Nieuws onderwerpen

 Informatie
   MSX Fora
  Artikelen
  Recensies
  Beursverslagen
  Fotoreportages
  Beurzen en meetings
  Enquêtes
  Links
  Zoek

 Software
   Downloads
  Webshop

 MRC
   Wie we zijn
  Kom bij ons team
  Doneren
  Policies
  Contact met het MRC
  Link naar Ons
  Statistieken

 Zoek
 
  

  

 Login
 

Gebruikersnaam

Wachtwoord




Ben je nog niet lid? Klik hier en word MSX vriend!


 Statistieken
 

Er zijn 43 gasten en 2 MSX vrienden online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

Development - RAM stays in memory after reset

Schrijver

RAM stays in memory after reset

norakomi
msx professional
Berichten: 861
Geplaatst: 25 Februari 2006, 21:07   
A really simple question, but I was wondering how come some games stay in RAM even after resetting,
and how could I put something in RAM which stays there after I reset the computer?


ibanezman1990
msx user
Berichten: 40
Geplaatst: 15 Maart 2006, 08:08   
Maybe becouse of the cmos/or other kind battery
msd
msx professional
Berichten: 612
Geplaatst: 15 Maart 2006, 08:19   
Ram is not erased after a reset. There reason why some games restart after a reset is because they used to be in ROM. They have an indentification code 'AB' on adress #4000. The bios searches for this code in all slots and if it finds one it boots it. With the msx2+ bios this problem is fixed. When a hardware reset is done the first byte is overwritten (and if it is in ram the byte 'A' is lost). When a 2+ gets a software reset this is not done and the rom in ram will still boot after rest.
BiFi
msx guru
Berichten: 3142
Geplaatst: 15 Maart 2006, 09:35   
Depending on the DRAM chips used it can take (quite) some time to have it 'forget' its contents after a while. When the ROM ID "AB" is detected on address $0000, $4000 or $8000 (unlikely as the ROM writes $00 to $8000 - $8002 to do a BASIC init) it will read the next two addresses to start the program (which is usually a game).

When you're lucky, a hardware reset will either make the DRAM instantly forget or have it changed a bit... This way the ROM ID "AB" is gone and the game will not start anymore. As msd already stated the soft reset will not change the DRAM contents at all.

It's kind of fixed in the MSX2+ and MSXturboR because that first address of each block/segment is used to dertemine the mapper size which is printed in the logo screen.
Gilneas2
msx freak
Berichten: 177
Geplaatst: 15 Maart 2006, 11:04   
I remember I used to rip graphics from games this way, by rebooting when the image was up and then loading AGE and somehow (I forgot how) pasting it in there.
[D-Tail]
online

msx guru
Berichten: 3017
Geplaatst: 15 Maart 2006, 12:13   
That's a video memory issue. Video RAM isn't erased upon a reset, only the part necessary for the boot sequence (and entering BASIC or whatever), is overwritten. Most of the time you'll have the graphics on the lower 64kB VRAM at your disposal, and most of the time that's the place where many games put there game tiles in. For example this way it's possible to rip graphics from Pumpkin Adventure III (I used to do that, a couple of years ago )
tfh
msx addict
Berichten: 493
Geplaatst: 15 Maart 2006, 13:23   
I remember being at a friend with an NMS8220. I loaded my copy of Zanac there from tape.
Even after about 2 minutes, there were traces left of that game in RAM!
 
 







(c) 1994 - 2008 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.