Function PrintByte

From Uzebox Wiki
Revision as of 20:03, 2 March 2009 by 70.53.147.110 (talk) (New page: {{Function |prototype = void PrintByte(int x, int y, unsigned char val, bool zeropad); |description = Prints an unsigned char in decimal format at the specified location. |parameters = ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Prototype

void PrintByte(int x, int y, unsigned char val, bool zeropad);

Description

Prints an unsigned char in decimal format at the specified location.

Parameters
  • x,y: Top left position to print the byte.
  • byte: Character to print in decimal.
  • zeropad: If true, values will have their most significant digits padded with zeros if not occupied. Otherwise, they will be padded with spaces.
Returns

Void

Video Modes

All

Since

V1

Example:

//print "074" on screen
PrintByte(10,10,0x4a,true);