| |
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 ??? |
|
| |
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 :) |
| |
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. :)
|
| |
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 |
| |
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... |
| |
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.
|
| |
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 |
| |
Zyron
Registered: Jan 2002 Posts: 2381 |
lda #col
sta $d021
jsr $e536
works on both old & new c64s. ;) |
| |
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. |
| |
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... |
| |
JackAsser
Registered: Jun 2002 Posts: 1987 |
THIRTEEN YEARS BETWEEN TWO POSTS!!!! :D Horray for Zyron - The thread awakener! ***Svindlande*** |
| |
Stablizer
Registered: Jan 2016 Posts: 19 |
jsr $e544 just clears the screen. :) |
| |
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 |
| |
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
|
| |
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. |
| |
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 |
| |
Count Zero
Registered: Jan 2003 Posts: 1809 |
Resolved after 18 years I assume. |