Page 1 of 1

sfont_len - wierd

Posted: Sat 02 Apr, 2011 4:25 pm
by puromtec
I have discovered that the sfont_len actually puts the pixel width in register 'b', instead of 'a' as the sysroutine specifies. Is this a brass thing? Or am I missing something?

Code: Select all

LD HL,Scolon*8 ; compute offset
B_CALL SFont_Len
I've recently discovered this routine, where I previously made my own map of character widths (don't ask). I am switching to the system routine to save space, but ran into this tricky issue. It always puts 8 in register 'a', it seems.

Re: sfont_len - wierd

Posted: Sat 02 Apr, 2011 8:45 pm
by Xeda
Hmm, I made a code last week that works and it uses the a register for the length.