Page 1 of 1

Getting started and out of date info

Posted: Fri Mar 10, 2023 12:37 pm
by qbox85
Hi guys,

just starting out and trying work it all out using what i can find online. I keep finding examples and how-tos that are out of date.

I am trying to follow "The Retro Desk" video on the Vera but he goes from zero to flat out in the one video.

Hopefully someone can help here.

I am trying to print a string to the screen but change the colour.

Code: Select all

Start

    ldx #$00
Loops
    lda message, x
    jsr $FFD2
    inx
    cpx #$0B
    bne Loops
    rts

message .text "HELLO WORLD"

Re: Getting started and out of date info

Posted: Fri Mar 10, 2023 1:49 pm
by JimmyDansbo
Since you are using the KERNAL call to print text, you can use the same kernal call to change color.

See https://cx16.dk/cx16-petscii/ for PETSCII color codes.
Notice that if you want to change background color, you can do it by using code $01 (swap fg/bg color).

Code: Select all

	lda #$1C	; Load RED color
	jsr $FFD2
	lda #$01	; Move Swap fg/bg color
	jsr $FFD2
	lda #$90	; Load BLACK color
	jsr $FFD2
If you put your text-output-loop after above code, you should get black text on red background.

Re: Getting started and out of date info

Posted: Fri Mar 10, 2023 2:08 pm
by grml
colorchars.png
colorchars.png (33.16 KiB) Viewed 3021 times

Re: Getting started and out of date info

Posted: Sat Mar 11, 2023 12:37 am
by qbox85
Thanks.

I will play around with the KERNAL.

The next step would to use the VERA 265 colour text mode.

Thanks

Re: Getting started and out of date info

Posted: Tue Mar 14, 2023 9:02 pm
by SlithyMatt
I am trying to follow "The Retro Desk" video on the Vera but he goes from zero to flat out in the one video.
I would definitely not start with that video! My original "Hello, cc65!" video is a better place to start to just print a string, or starting my tutorial series from the first episode (like I say in the beginning of each subsequent episode, like in the VERA one).





They are a little out of date, but it should still give you a solid foundation. I am going to be remaking these videos in the near future as full production gets closer.