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 > CSDb Discussions > $e544 ?
2002-04-09 08:28
Dwangi

Registered: Dec 2001
Posts: 129
$e544 ?

Hope this is the right forum to put a question..

I have heard so much comments of what is right and wrong when setting up a multicolor screen (so it also work on old c64:s´)

lda color
sta $0286
jsr $e544

thats fuck up on an old c64 ???
2002-04-09 11:13
Stryyker

Registered: Dec 2001
Posts: 465
Just use a simple copy loop. Early ROMS used the background colour or something, well didn't always set the colour RAM to expected colour :)
2002-04-09 11:29
Perff
Administrator

Posts: 1664
How many people actually uses the ROM in demos?

I never did. All my code starts with:
sei
lda #$35
sta $01

but i've seen a lot of demos and stuff with the rom switched on. Why is that? Then you have less memory. :)
2002-04-09 12:28
anonym

Registered: Jan 2002
Posts: 243
I normally only turn the ROM off if I need to... However in Trackmos it's something different... It certainly gets difficult when integrating what different coders have created ;-)

/Frank
2002-04-09 13:14
QuasaR

Registered: Dec 2001
Posts: 145
The old $e544 doesn't take the colour from $0286 but it take the background-colour. Some demos doesn't work because of this bug and even decruncher seems to fuck up... Try RED STORM on an old C64...
2002-04-09 19:14
Rough
Account closed

Registered: Feb 2002
Posts: 1829
Is there an image of that old ROM available somewhere on the net to use in emulators?

I'd also like to have Swedish (different charset) etc. ROMs.

2002-04-09 22:28
WVL

Registered: Mar 2002
Posts: 885
do this :

lda #charcolor
sta $0286
sta $d021
jsr $e544
lda #bgcolor
sta $d021

always works, but has this annoying background flash..
use

lda #147
jsr chrout

otherwise.. same as shift-home, but slow

or make a simple loop routine..

WVL
2015-02-03 20:06
Zyron

Registered: Jan 2002
Posts: 2381
lda #col
sta $d021
jsr $e536

works on both old & new c64s. ;)
2015-02-03 20:35
lft

Registered: Jul 2007
Posts: 369
This behaviour is actually explained in Bagnall's On The Edge. Early revisions of the VIC had a problem where small dots of the foreground colour would flicker randomly all over the screen. Obviously, this would have given potential customers a really bad first impression of the C64. There was no time to fix the hardware, so they added a workaround to the kernal ROM, where the current background colour would be stored into all colour RAM locations corresponding to blank characters on the screen.
2015-02-03 20:47
tlr

Registered: Sep 2003
Posts: 1701
Quote: lda #col
sta $d021
jsr $e536

works on both old & new c64s. ;)


$e544 sets color mem to white in kernal rev1...
2015-02-04 07:14
JackAsser

Registered: Jun 2002
Posts: 1987
THIRTEEN YEARS BETWEEN TWO POSTS!!!! :D Horray for Zyron - The thread awakener! ***Svindlande***
2016-01-09 07:25
Stablizer

Registered: Jan 2016
Posts: 19
jsr $e544 just clears the screen. :)
2016-01-09 19:30
TheRyk

Registered: Mar 2009
Posts: 2035
I find Zyron's hint kinda kewl and helpful to prevent old KERNAL Rev CLRSCR trouble, even after so many years :)

PS: Had funny experiences with this release and an old KERNAL rev compo machine hehehe
DuTreff
on old rev white on white as it uses $E544 CLRSCR
2016-01-10 21:15
Graham
Account closed

Registered: Dec 2002
Posts: 990
A "clean" and portable version would be:

clrscrn
        TAX
        LDA col2pet,X   ; convert color to PETSCII code
        JSR $FFD2       ; CHROUT

        LDA #$93        ; CLR (PETSCII code)
        JMP $FFD2       ; CHROUT

col2pet
        .bxte $90,$05,$1C,$9F,$9C,$1E,$1F,$9E
        .byte $81,$95,$96,$97,$98,$99,$9A,$9B


The col2pet table is not really required, the same table can be found in Kernal-ROM at adress $E8DA, hence:

col2pet = $E8DA

clrscrn
        TAX
        LDA col2pet,X   ; convert color to PETSCII code
        JSR $FFD2       ; CHROUT

        LDA #$93        ; CLR (PETSCII code)
        JMP $FFD2       ; CHROUT
2020-06-04 08:28
Dwangi

Registered: Dec 2001
Posts: 129
Hi

Thanks for all the answers.
I never use ROM:s myself. I asked because alot of demos between 1987 and 1992 (and even some games) displayed single colours on an old C64 were it should be multicolours.

I have also seen alot of coders trying to teach other how to do it "right".

For example in this demo.
Lunacy 6 by Antic.

Anyway seems like this topic should have been in the coders section. Sorry for this.
2020-06-04 08:47
JackAsser

Registered: Jun 2002
Posts: 1987
Quote: Hi

Thanks for all the answers.
I never use ROM:s myself. I asked because alot of demos between 1987 and 1992 (and even some games) displayed single colours on an old C64 were it should be multicolours.

I have also seen alot of coders trying to teach other how to do it "right".

For example in this demo.
Lunacy 6 by Antic.

Anyway seems like this topic should have been in the coders section. Sorry for this.


<3
2020-06-04 09:06
Count Zero

Registered: Jan 2003
Posts: 1809
Resolved after 18 years I assume.
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
hedning/G★P
cobbpg
Case/Padua
t0m3000/ibex-crew
Guests online: 307
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 No Bounds  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 Party Elk 2  (9.7)
2 Cubic Dream  (9.6)
3 Copper Booze  (9.5)
4 Rainbow Connection  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Onscreen 5k  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Nostalgia  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Graphicians
1 Sulevi  (10)
2 Mirage  (9.8)
3 Lobo  (9.7)
4 Mikael  (9.7)
5 Archmage  (9.7)

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