Slightly ashamed to be asking this, but i've been searching the internet for a while and through all the lessons etc.
I'm looking at the firmware routines and have managed to make sure the screen is mode 1 and change the border colour of my cpc by using:
Code: Select all
Printchar equ &bb5a
call &bc0e ;clear screen to mode 1
;change border and screen colour
ld bc,&0b0b ;
I'm trying to now change the text (pen) background (ink 0) to the colour I want but I can't seem to find out how to do it in assembly. It's so simple in BASIC. My program that I made in BASIC and now converting to asm uses the following:
I've tried firmware routine &bc32 to try set the pen after setting bc, but it doesn't appear to be doing anything. If I call it using BASIC on the system with a parimiter (any it seems) it changes the text to light green.
How would you set about doing this in z80asm?