BBC Micro C library
Functions
support.h File Reference

Misc support functions. More...

Go to the source code of this file.

Functions

void putstring (const char *s)
 
void puth (uint8_t n)
 
void puthtab (uint8_t x, uint8_t y, uint8_t n)
 
void putd (int32_t d)
 
void putdtab (uint8_t x, uint8_t y, int32_t d)
 
char * dtos (int32_t d)
 

Detailed Description

Misc support functions.

Misc support functions including number output

Function Documentation

◆ dtos()

char* dtos ( int32_t  d)

Convert a number to a string

d number

Returns
pointer to output string, static data, function is not reentrant

◆ putd()

void putd ( int32_t  d)

output a 32bit signed decimal number

Parameters
dnumber

◆ putdtab()

void putdtab ( uint8_t  x,
uint8_t  y,
int32_t  d 
)

output a 32bit signed decimal number

Parameters
xtext coordinate
ytext coordinate
dnumber

◆ puth()

void puth ( uint8_t  n)

output an 8bit hex number

Parameters
nnumber

◆ puthtab()

void puthtab ( uint8_t  x,
uint8_t  y,
uint8_t  n 
)

output an 8bit hex number at a particular text coordinate

Parameters
xtext coordinate
ytext coordinate
nnumber

◆ putstring()

void putstring ( const char *  s)

Output a zero terminated string without a newline char

Parameters
sstring