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 > "Colour bug" on old c64 not emulated in Vice?
2012-01-22 20:14
Zyron

Registered: Jan 2002
Posts: 2381
"Colour bug" on old c64 not emulated in Vice?

I remember that doing something like this
lda #col
sta $0286
jsr $e544
will work on a new c64, but on the old model $d800- would get the same colour as $d021 so no chars will be visible.
I've tried this in Vice v2.3 but no matter what setup I choose I can't reproduce the bug.
I've tested with Super Music since I remember clearly that it did not display any text on my old c64.
 
... 10 posts hidden. Click here to view all posts....
 
2012-01-23 20:00
Zyron

Registered: Jan 2002
Posts: 2381
I remember we had a loader part in Lunacy 6 - The Lost Sequel where we told coders to instead do it this way:
lda #col
sta $d021
jsr $e536
which works. Or at least that's what it was supposed to say but I think Depeh messed it up in some way. :)
2012-01-23 20:09
iAN CooG

Registered: May 2002
Posts: 3196
Quote: @Zyron: Thanks. Now I got it, finally. :)

But still one thing remains. Why don't i see the patched areas given in the vice.log file when I check from monitor? For example 3 bytes at $e42d looks like

20 1e ab

for both rev0 and rev3 kernals.

Is there any chance that i see rev3 from monitor even if it's patched at the background (doesn't make sense to me actually)? That was the main reason i got confused, since both ROMs looked similar at certain points from monitor.


these 3 bytes are infact patched for nothing when you patch from rev3 to rev0 but they change when you use other revisions for example -kernalrev 4064
The relevant code for the $0286 bug is
rev0
(C:$e458) d e4d2
.C:e4d2  AA         TAX
.C:e4d3  AA         TAX
.C:e4d4  AA         TAX
.C:e4d5  AA         TAX
.C:e4d6  AA         TAX
.C:e4d7  AA         TAX
.C:e4d8  AA         TAX
.C:e4d9  AA         TAX
.C:e4da  AD 21 D0   LDA $D021 <- uses screen color
.C:e4dd  91 F3      STA ($F3),Y
rev3
.C:e4d2  AA         TAX
.C:e4d3  85 A9      STA $A9
.C:e4d5  A9 01      LDA #$01
.C:e4d7  85 AB      STA $AB
.C:e4d9  60         RTS
.C:e4da  AD 86 02   LDA $0286 <- proper cursor color
.C:e4dd  91 F3      STA ($F3),Y

these dumps are taken from vice monitor after launching x64 with -kernalrev 0 and 3 (or nothing because 3 it's the default rom)
2012-01-23 20:15
chatGPZ

Registered: Dec 2001
Posts: 11386
Quote:
@Groepaz: My vice version is downloaded from viceteam.org and files are completely untouched.

you might want to get the latest one from http://vice-emu.sourceforge.net/ :=)
and what i wanted to say is: this option might disappear, as it is redundant.
2012-01-23 20:40
Ninja

Registered: Jan 2002
Posts: 411
That's what I collected back then:

http://unusedino.de/ec64/technical/aay/c64/krnver.htm

Dunno where I got the revision numbering, though.
Previous - 1 | 2 - 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
Andy/AEG
Alakran_64
Paladin/G★P
LordCrass
MWR/Visdom
Knut Clausen/SHAPE/F..
Guests online: 88
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 Censor Design  (9.3)
5 Triad  (9.3)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

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