Difference between revisions of "83Plus:BCALLs:4786"
From WikiTI
(Creation, because the SDK is wrong) |
(Updated category) |
||
Line 1: | Line 1: | ||
− | [[Category:83Plus:BCALLs:By Name|SFont_Len]] [[Category:83Plus:BCALLs:By Address|4786 - SFont_Len]] | + | [[Category:83Plus:BCALLs:By Name|SFont_Len]] [[Category:83Plus:BCALLs:By Address|4786 - SFont_Len]] [[Category:83Plus:BCALLs:By Name:Display|SFont_Len]] |
== Synopsis == | == Synopsis == | ||
'''Official Name:''' SFont_Len | '''Official Name:''' SFont_Len |
Latest revision as of 11:07, 3 October 2009
Contents
Synopsis
Official Name: SFont_Len
BCALL Address: 4786
Returns the width of a small font character.
Inputs
- HL: Index into font data table. Multiply the character's code by eight to get this.
Outputs
- B: Font width.
- A: The SDK is wrong. A only contains the width if a localize or font hook is active and wants to intercept the call.
Destroys
- AF, BC, DE, HL
Example
Get the width of the character in A:
ld l, a ld h, 0 add hl, hl add hl, hl add hl, hl B_CALL SFont_Len