Function PrintByte

From Uzebox Wiki
Jump to: navigation, 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);