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 > Powerup RAM test pattern
2020-03-30 15:20
Rudi

Registered: May 2010
Posts: 126
Powerup RAM test pattern

What are those patterns of sixty four trailing 0x00 and 0xff in RAM. Are those powerup test patterns to check wether the bits are working?

Reason I am asking is that I have just ignored figuring out what causes it in the past. Im not usually diging deep into the electronics. Also I am looking at some older computer than C64 which has the same pattern; though those are 128 bytes long instead of 64 but has the same amount of RAM. So whats the reason C64 has 64 bytes of these and not 128?

Two quick questions. Feel free to enlighten me :P
2020-03-30 15:26
Krill

Registered: Apr 2002
Posts: 2981
Short answer is, it's the "natural" state the memory bits fall back to after not being refreshed for a certain time. A hardware effect.

Why this is 0 for some ranges and 1 for others, and the size of those ranges, is part of the long answer.
2020-03-30 15:33
Rudi

Registered: May 2010
Posts: 126
Very good
2020-03-30 16:39
Impetigo

Registered: Jun 2004
Posts: 33
A relevant discussion: what is your RAM init pattern?
2020-03-30 16:46
chatGPZ

Registered: Dec 2001
Posts: 11387
also see https://sourceforge.net/p/vice-emu/code/HEAD/tree/testprogs/C64..
2020-03-30 18:37
Rudi

Registered: May 2010
Posts: 126
Thank you
2020-03-31 11:51
Oswald

Registered: Apr 2002
Posts: 5095
Quote: Short answer is, it's the "natural" state the memory bits fall back to after not being refreshed for a certain time. A hardware effect.

Why this is 0 for some ranges and 1 for others, and the size of those ranges, is part of the long answer.


that makes me remember, in the "days" we had no carts we just power cycled to reset the machines, at one of my friends once the c64 just didnt want to forget, the screen was still there after 3-5 power cycles altho more and more degraded, the program obviously not running. Then after waiting some minutes it was fine.
2020-03-31 12:08
chatGPZ

Registered: Dec 2001
Posts: 11387
yes, a certain type of (iirc) chinese RAMs had a crazy long retention time - long enough for some games with cbm80 startup to just start again after quick powercycle :)
2021-11-30 00:00
Repose

Registered: Oct 2010
Posts: 225
That happened to my machine too. I wonder if they are still powered at least by some capacitor, but I don't recall experimenting with unplugging it.
However, it's never a bug it's a feature - I wanted to write a simple error correcting code, using a large amount of memory to store a time string, so I could log brief power outs!
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
Mike
Dano/Padua
Scooby/G★P/Light
Sledge/Fairlight
A3/AFL
Airwolf/F4CG
Matt
Mason/Unicess
Gregfeel/Lepsi De, S..
Guests online: 84
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.6)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Sprite Bukkake 2  (9.6)
9 Uncensored  (9.6)
10 Comaland 100%  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 X-Mas Demo 2024  (9.6)
6 Xmas 2023 Silent Night  (9.5)
7 Katzen-Video.mp4  (9.5)
8 Selbuvotter Latitudes  (9.5)
9 Xmas 2024  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Performers  (9.3)
4 Fairlight  (9.3)
5 Triad  (9.3)
Top Graphicians
1 Hend  (9.8)
2 Mirage  (9.7)
3 Archmage  (9.7)
4 Pal  (9.6)
5 Carrion  (9.6)

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