CPCWiki forum

General Category => Programming => Topic started by: funkheld on 09:29, 15 November 20

Title: cpc6128: move ascii characters from rom to ram?
Post by: funkheld on 09:29, 15 November 20

Hi good afternoon.
can you please move the ascii rom into ram and then change it without a symbol / symbol after?


Thank you.
greeting
Title: Re: cpc6128: move ascii characters from rom to ram?
Post by: AMSDOS on 10:36, 17 November 20
Quote from: funkheld on 09:29, 15 November 20
Hi good afternoon.
can you please move the ascii rom into ram and then change it without a symbol / symbol after?


Thank you.
greeting


In Assembly, the Firmware/BIOS has a section called the Text Functions (https://www.cpcwiki.eu/index.php/BIOS_Text_Functions), in there is an instruction called TXT SET M TABLE, this is the instruction you want to Move ASCII from ROM into RAM. It can be setup like this:



org &7000 ;; CALL &7000 from BASIC to execute this routine.


ld de,0 ;; first character, since this is zero all 256 characters will be placed into RAM
ld hl,chrset ;; the location of the character set in RAM
call &bbab ;; TXT SET M TABLE
ret ;; return to BASIC if
.chrset defb 0 ;; just make sure there's no other machine code routines since 8x256 is used.
Title: Re: cpc6128: move ascii characters from rom to ram?
Post by: funkheld on 19:21, 17 November 20
hello thanks for the help.


greeting
Powered by SMFPacks Menu Editor Mod