sfont_len - wierd

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
puromtec
New Member
Posts: 43
Joined: Fri 07 May, 2010 11:00 pm

sfont_len - wierd

Post 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.
Xeda
New Member
Posts: 42
Joined: Sun 06 Feb, 2011 7:08 am

Re: sfont_len - wierd

Post by Xeda »

Hmm, I made a code last week that works and it uses the a register for the length.
Post Reply