Assembly ideas / CMAP


CMAP means Character reMAP. Well, this keyword enables you to redefined the character codes.

For example:

CMAP "a",$08,$10,$18,$20,$28,$30,$38,$40,$48,$50,$58,$60,$68,$70,$78,$80,$88,$90

a b c d e f g h i j k l m n o p q r
$08 $10 $18 $20 $28 $30 $38 $40 $48 $50 $58 $60 $68 $70 $78 $80 $88 $90

This is very useful for searching images of characters in the ROM ($D000). "K" starts at $D058:
 $D058: 66 01100110
 $D059: 6C 01101100
 $D05A: 78 01111000
 $D05B: 70 01110000
 $D05C: 78 01111000
 $D05D: 6C 01101100
 $D05E: 66 01100110
 $D05F: 00 00000000