| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
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.... |
| |
willymanilly Account closed
Registered: Jan 2016 Posts: 27 |
It has 2xMN41464-15 Japan 6D632 in U9 and U10 |
| |
willymanilly Account closed
Registered: Jan 2016 Posts: 27 |
I don't use dropbox so I just emailed pictures to you. You might want to check your spam if you don't receive them. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
thanks!
so where are the rest? :) |
| |
Fierman
Registered: Feb 2002 Posts: 85 |
too lazy to dump and xfer file
http://i.imgur.com/Xlc9IBu.jpg
assy 250407
and here the internals:
http://i.imgur.com/9dOVV9O.jpg |
| |
Hypnosis
Registered: Mar 2015 Posts: 36 |
Mine looks like this:
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
0000 0000 0000 00ff ff00 0000 bf00 0000
0000 0000 0000 0000 0000 0000 4000 4000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
0000 0000 0000 00ff ff00 0000 bf00 0000
0000 0000 0000 0000 0000 0000 4000 4000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
0000 0000 0000 00ff ff00 0000 bf00 0000
0000 0000 0000 0000 0000 0000 4000 4000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ASSY NO.250407
RAM M3764-20RS OKI Japan 3Y311 |
| |
Pitcher
Registered: Aug 2006 Posts: 61 |
Heres a sample, have photos if needed of full dumps, both from a cold start after being sat in the cuboard, last used 1 week+ ago.
Bread bin 1 - 1983 - assy 250407 - serial B1442003
has had some chips changed by the looks of things
C000 -
00 FF EE FF 00 00 00 EB
FF 00 FF 41 EE E2 FF 00
EE 00 FF FF FF 00 FF 00
EE 00 FF 00 FF 00 FF 00
00 FF FF FF EA A3 EF 40
EB EF FF 21 00 C0 FF E3
EF 00 FF A0 FF 00 FF 00
Bread bin 2 - 1984 - assy 250425 - serial B2399395
c000 -
FF 00 FF 00 FF 00 FF 00
FF 00 FF 00 FF 00 FF 00
FF 00 FF 00 77 00 FF 00
FF 88 75 00 FF 00 FF 00
FF 00 FF 00 FF 00 FF 00
FF 00 DF 00 FF 00 FF 00
FF 00 FF 00 FF 00 FF 00 |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
could you also check the type of RAM chips please? |
| |
Pitcher
Registered: Aug 2006 Posts: 61 |
Quote: Heres a sample, have photos if needed of full dumps, both from a cold start after being sat in the cuboard, last used 1 week+ ago.
Bread bin 1 - 1983 - assy 250407 - serial B1442003
has had some chips changed by the looks of things
C000 -
00 FF EE FF 00 00 00 EB
FF 00 FF 41 EE E2 FF 00
EE 00 FF FF FF 00 FF 00
EE 00 FF 00 FF 00 FF 00
00 FF FF FF EA A3 EF 40
EB EF FF 21 00 C0 FF E3
EF 00 FF A0 FF 00 FF 00
Bread bin 2 - 1984 - assy 250425 - serial B2399395
c000 -
FF 00 FF 00 FF 00 FF 00
FF 00 FF 00 FF 00 FF 00
FF 00 FF 00 77 00 FF 00
FF 88 75 00 FF 00 FF 00
FF 00 FF 00 FF 00 FF 00
FF 00 DF 00 FF 00 FF 00
FF 00 FF 00 FF 00 FF 00
Breadbin 1 - mn4164p
3n6-15
Breadbin 2 - mn4164p
4d1-15 |
| |
JackAsser
Registered: Jun 2002 Posts: 2014 |
Coding my own emu (don't ask why) and I just noticed that the KERNEL relies on uninitiated memory. Check this small startup dump of the KERNEL:
FCE2 A2 LDX #$FF A:00 X:00 Y:00 P:24 SP:FD
FCE4 78 SEI A:00 X:FF Y:00 P:A4 SP:FD
FCE5 9A TXS A:00 X:FF Y:00 P:A4 SP:FD
FCE6 D8 CLD A:00 X:FF Y:00 P:A4 SP:FF
FCE7 20 JSR $FD02 A:00 X:FF Y:00 P:A4 SP:FF
FD02 A2 LDX #$05 A:00 X:FF Y:00 P:A4 SP:FD
FD04 BD LDA $FD0F,X A:00 X:05 Y:00 P:24 SP:FD
FD07 DD CMP $8003,X A:30 X:05 Y:00 P:24 SP:FD
FD0A D0 BNE $FD0F A:30 X:05 Y:00 P:24 SP:FD
FD0F 60 RTS A:30 X:05 Y:00 P:24 SP:FD
FCEA D0 BNE $FCEF A:30 X:05 Y:00 P:24 SP:FF
FCEF 8E STX $D016 A:30 X:05 Y:00 P:24 SP:FF
FCF2 20 JSR $FDA3 A:30 X:05 Y:00 P:24 SP:FF
FDA3 A9 LDA #$7F A:30 X:05 Y:00 P:24 SP:FD
FDA5 8D STA $DC0D A:7F X:05 Y:00 P:24 SP:FD
FDA8 8D STA $DD0D A:7F X:05 Y:00 P:24 SP:FD
FDAB 8D STA $DC00 A:7F X:05 Y:00 P:24 SP:FD
FDAE A9 LDA #$08 A:7F X:05 Y:00 P:24 SP:FD
FDB0 8D STA $DC0E A:08 X:05 Y:00 P:24 SP:FD
FDB3 8D STA $DD0E A:08 X:05 Y:00 P:24 SP:FD
FDB6 8D STA $DC0F A:08 X:05 Y:00 P:24 SP:FD
FDB9 8D STA $DD0F A:08 X:05 Y:00 P:24 SP:FD
FDBC A2 LDX #$00 A:08 X:05 Y:00 P:24 SP:FD
FDBE 8E STX $DC03 A:08 X:00 Y:00 P:26 SP:FD
FDC1 8E STX $DD03 A:08 X:00 Y:00 P:26 SP:FD
FDC4 8E STX $D418 A:08 X:00 Y:00 P:26 SP:FD
FDC7 CA DEX A:08 X:00 Y:00 P:26 SP:FD
FDC8 8E STX $DC02 A:08 X:FF Y:00 P:A4 SP:FD
FDCB A9 LDA #$07 A:08 X:FF Y:00 P:A4 SP:FD
FDCD 8D STA $DD00 A:07 X:FF Y:00 P:24 SP:FD
FDD0 A9 LDA #$3F A:07 X:FF Y:00 P:24 SP:FD
FDD2 8D STA $DD02 A:3F X:FF Y:00 P:24 SP:FD
FDD5 A9 LDA #$E7 A:3F X:FF Y:00 P:24 SP:FD
FDD7 85 STA $01 A:E7 X:FF Y:00 P:A4 SP:FD
FDD9 A9 LDA #$2F A:E7 X:FF Y:00 P:A4 SP:FD
FDDB 85 STA $00 A:2F X:FF Y:00 P:24 SP:FD
FDDD AD LDA $02A6 A:2F X:FF Y:00 P:24 SP:FD
FDE0 F0 BEQ $FDEC A:FF X:FF Y:00 P:A4 SP:FD
Right there at $FDDD!!! What the fuck? :)
Kind regards, Andreas |
| |
Flavioweb
Registered: Nov 2011 Posts: 463 |
Code at $FDDD is executed twice during reset:
$FF5B/65371: Initialize screen editor
Jump from $FCFB, $FF81:
FF5B: 20 18 E5 JSR $E518 ; Initialize I/O
Jump from $FF61:
FF5E: AD 12 D0 LDA $D012 ; VIC: Raster Position
FF61: D0 FB BNE $FF5E
FF63: AD 19 D0 LDA $D019 ; VIC: Interrupt Request Register (IRR)
FF66: 29 01 AND #$01
FF68: 8D A6 02 STA $02A6 ; Flag: TV Standard
FF6B: 4C DD FD JMP $FDDD ; Enable Timer
first "setup" is overwritten by the second call at $FDDD |
Previous - 1 | 2 | 3 | 4 | 5 | 6 - Next |