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 > what is your RAM init pattern?
2016-04-27 19:49
chatGPZ

Registered: Dec 2001
Posts: 11108
what is your RAM init pattern?

since i stumbled about yet another case of some ancient demo that relies on uninitialized RAM - and which would only work if you change the default VICE uses currently - i think its about time to collect some hard data about this phenomenon and perhaps at the end add proper configuration for it to VICE (or even choose a better default).

background: when you power on your C64, the RAM will not be zero, instead (about) half of the RAM cells will be 1, and the other half will be 0. this results in some kind of pattern (mostly) consisting of $00 and $ff. for example if you start VICE, then enter the monitor and look at a page of RAM it shows this:

(C:$e5d4) m c000 c0ff
>C:c000  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00   ................
>C:c010  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00   ................
>C:c020  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00   ................
>C:c030  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00   ................
>C:c040  ff ff ff ff  ff ff ff ff  ff ff ff ff  ff ff ff ff   ................
>C:c050  ff ff ff ff  ff ff ff ff  ff ff ff ff  ff ff ff ff   ................
>C:c060  ff ff ff ff  ff ff ff ff  ff ff ff ff  ff ff ff ff   ................
>C:c070  ff ff ff ff  ff ff ff ff  ff ff ff ff  ff ff ff ff   ................
>C:c080  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00   ................
>C:c090  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00   ................
>C:c0a0  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00   ................
>C:c0b0  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00   ................
>C:c0c0  ff ff ff ff  ff ff ff ff  ff ff ff ff  ff ff ff ff   ................
>C:c0d0  ff ff ff ff  ff ff ff ff  ff ff ff ff  ff ff ff ff   ................
>C:c0e0  ff ff ff ff  ff ff ff ff  ff ff ff ff  ff ff ff ff   ................
>C:c0f0  ff ff ff ff  ff ff ff ff  ff ff ff ff  ff ff ff ff   ................


this is the default pattern, which could be shortened to "64 times $00, 64 times $ff, repeat"

now i'd like to know how it looks like on your (real) C64... if you have some cartridge with ML monitor, all you need to do is power on your c64, check some memory page, and post the pattern here (you can ignore that some values wont actually be 0 or $ff - what matters is the general trend). additionally it would be extra cool if you could look into your C64 and post the type of RAM chips that it uses as well (since the pattern most likely depends on them) - they are labelled 4164 or 4464 or 41464 (please post everything written on it, the exact type and manufacturer is interesting here). Also please post the ASSY NO of the board, as the way RAM is wired up matters as well.

thanks for your help!

PS: if you are curious, Typical is the demo in question... if you can name other examples ("works in CCS64 but not in VICE is often an indicator for it), please post them too!
 
... 47 posts hidden. Click here to view all posts....
 
2016-04-29 10:56
chatGPZ

Registered: Dec 2001
Posts: 11108
could you post fotos from the RAM chips of the other two C64s as well? the case/keyboard is not very interesting for this =)
2016-04-29 12:02
Flavioweb

Registered: Nov 2011
Posts: 447
Other 2 C64 were never opened, and i want to leave them as they are.
Someone else may have similar models and maybe wants to open them...
2016-04-29 13:01
chatGPZ

Registered: Dec 2001
Posts: 11108
well, the model really doesnt tell you anything about the type of RAM (or even the ASSY) :) why not open them? afraid of voiding warranty? =D
2016-04-29 13:38
Flavioweb

Registered: Nov 2011
Posts: 447
Matter of superstition ...
usually we say: "do not touch the sleeping dog", which means: "if something is working, don't thouch it".
I am sure that if I opened them, something stop working ...
=P
PS: I'm not superstitious because it brings bad luck.
=D

Edit: i'm pretty sure that more old are the ram chips, more random values are included in the patterns...
2016-04-29 14:22
chatGPZ

Registered: Dec 2001
Posts: 11108
could you tell the ASSY NO of that breadbin then at least, please? :)
2016-04-29 14:36
Flavioweb

Registered: Nov 2011
Posts: 447
Assy n. 250407 artwork 251137 rev C.
2016-04-29 16:44
chatGPZ

Registered: Dec 2001
Posts: 11108
updated

TMR/Karmic/Christopher Jam: could also make a memory dump?
2016-04-29 18:24
Flavioweb

Registered: Nov 2011
Posts: 447
Just for the record, Typical works if in Vice we set "first byte: $00", "lenght of constant: 4" and "lenght of pattern: 8".
This create a pattern like:
.:c000 00 00 00 00 ff ff ff ff ........
.:c008 ff ff ff ff 00 00 00 00 ........
.:c010 00 00 00 00 ff ff ff ff ........
.:c018 ff ff ff ff 00 00 00 00 ........
.:c020 00 00 00 00 ff ff ff ff ........
.:c028 ff ff ff ff 00 00 00 00 ........
.:c030 00 00 00 00 ff ff ff ff ........
.:c038 ff ff ff ff 00 00 00 00 ........
.:c040 00 00 00 00 ff ff ff ff ........
.:c048 ff ff ff ff 00 00 00 00 ........
.:c050 00 00 00 00 ff ff ff ff ........
.:c058 ff ff ff ff 00 00 00 00 ........
.:c060 00 00 00 00 ff ff ff ff ........
.:c068 ff ff ff ff 00 00 00 00 ........
.:c070 00 00 00 00 ff ff ff ff ........
.:c078 ff ff ff ff 00 00 00 00 ........
.:c080 00 00 00 00 ff ff ff ff ........
.:c088 ff ff ff ff 00 00 00 00 ........
.:c090 00 00 00 00 ff ff ff ff ........
.:c098 ff ff ff ff 00 00 00 00 ........
.:c0a0 00 00 00 00 ff ff ff ff ........
.:c0a8 ff ff ff ff 00 00 00 00 ........
.:c0b0 00 00 00 00 ff ff ff ff ........
.:c0b8 ff ff ff ff 00 00 00 00 ........
.:c0c0 00 00 00 00 ff ff ff ff ........
2016-04-29 18:26
MagerValp

Registered: Dec 2001
Posts: 1055
https://www.dropbox.com/s/f7anwdudabcd9f4/Foto%202016-04-29%202..
https://www.dropbox.com/s/xzf5so80buvx62w/Foto%202016-04-29%202..
2016-04-29 18:35
chatGPZ

Registered: Dec 2001
Posts: 11108
flavioweb: for typical the only thing that is needed is that $3fff is 0 (or perhaps even something different to $ff) :)
Previous - 1 | 2 | 3 | 4 | 5 | 6 - Next
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
MADMAX
Guests online: 102
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

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