Difference between revisions of "83Plus:BCALLs:4C42"

From WikiTI
Jump to: navigation, search
(Destroys)
 
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
Line 17: Line 17:
  
 
=== Destroys ===
 
=== Destroys ===
* Unknown
+
* DE
  
 
== Comments ==
 
== Comments ==

Latest revision as of 13:17, 6 February 2008


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

  • DE

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
...