I adapted what I could, but I am still not quite understanding how this hook works. The customCharacter still seems to have no affect on anything. Is there anything I'm forgetting?
Code:
Code:
.nolist
#include "ti84pcse.inc"
#define PutMapFlags $4a
#define PutMapUseColor 4
.list
.db tExtTok,tAsm84CCmp
hookBackup equ appBackUpScreen
.org userMem
bcall(_NewLine)
ld hl,FontHook
;in a,(6)
bcall(_SetFontHook)
ld hl,eq3
bcall(_VPutS)
bcall(_GetKey)
ret
FontHook:
.db 83h ; Required for all hooks
or a
jr z,+_
cp a
ret
_:
ld a,h
or a,l
rrca
rrca
rrca
cp $80
ret nz
;ld hl,customCharacter
;ld de,lFont_record
;ld bc,7
;ldir
ld hl,customCharacter
cp a
ret
customCharacter:
.db %00000000
.db %00001100
.db %00010110
.db %00011110
.db %00010110
.db %00010110
.db %00000000
eq3:
.db "V",$12,"=V",$80,$12,"+2a",$BE,"X ";$80 displays the original $80