Difference between revisions of "83Plus:BCALLs:4C42"
From WikiTI
m (Dumb code optimization) |
|||
Line 1: | Line 1: | ||
[[Category:83Plus:BCALLs:By_Name|VPutMapRec]] [[Category:83Plus:BCALLs:By_Address|4C42 - VPutMapRec]] | [[Category:83Plus:BCALLs:By_Name|VPutMapRec]] [[Category:83Plus:BCALLs:By_Address|4C42 - VPutMapRec]] | ||
+ | {{missinfo|Destroys}} | ||
== Synopsis == | == Synopsis == | ||
'''Unofficial Name:''' VPutMapRec | '''Unofficial Name:''' VPutMapRec |
Revision as of 05:49, 6 February 2008
This article is missing some information (namely Destroys). You can help WikiTI by filling in the missing information.
Synopsis
Unofficial Name: VPutMapRec
BCALL Address: 4C42
Displays the character data at sFont_record at the current screen coordinates (the same as VPutMap).
Inputs
- sFont_record = character data
- penRow = row to display at
- penCol = column to display at
Outputs
- Character is displayed
Destroys
- Unknown
Comments
This routine works exactly the same as VPutMap except that it uses the character data at sFont_record instead of a character equate in A. In theory, this means you can draw any character or sprite you can think up (within reason).
It will reset fracDrawLFont,(iy+fontFlags) many times, even more times if A = 8 (for whatever reason).
Example
Example code to display a capital A in the top left corner of the screen:
ld hl,0 ld (penCol),hl ld l,'A' add hl,hl ;*2 add hl,hl ;*4 add hl,hl ;*8 B_CALL Load_SFont ;load font data for 'A' to sFont_record B_CALL VPutMapRec ;display sFont_record data ...