ddebug_lib.library Reference

Comprehensive function reference for ddebug_lib.library, synthesised from the AmigaOS NDK 3.2 Release 4 (Autodocs/AG/ddebug_lib).

This page documents 8 functions of ddebug_lib.library. Each function entry follows the canonical autodoc format. struct Name, union Name, enum Name are clickable links to the type definition in the types reference.

Function index


DDoFmt()

DDoFmt -- format data into a character stream.

Synopsis

DDoFmt(FormatString, DataStream, PutChProc, PutChData); A0 A1 A2 A3

Function

perform "C"-language-like formatting of a data stream, outputting the result a character at a time

Inputs

FormatString - a "C"-language-like null terminated format string, with the following supported % types: DataStream - a stream of data that is interpreted according to the format string. PutChProc - the procedure to call with each character to be output, called as: PutChProc(Char, PutChData); D0-0:8 A3 the procedure is called with a null Char at the end of the format string. PutChData - an address register that passes thru to PutChProc.


DGetChar()

DGetChar - get a character from the parallel port

Synopsis

char = DGetChar() D0

Function

get the next character from the parallel port.


DGetNum()

DGetNum - get a number from the parallel port

Synopsis

number = DGetNum() D0

Function

get a signed decimal integer from the parallel port.


DMayGetChar()

DMayGetChar - return a char iff present, but don't block

Synopsis

flagChar = DMayGetChar() D0

Function

return either a -1, saying that there is no char present, or the char that was waiting


DPutChar()

DPutChar - put a character to the parallel port

Synopsis

char = DPutChar(char) D0 D0

Function

put a character to the parallel port.


DPutFmt()

DPutFmt - print formatted data to the parallel port

Synopsis

DPutFmt(format,values) A0 A1

Function

print formatted data to the parallel port


DPutStr()

DPutStr - put a string to the parallel port

Synopsis

DPutStr(string) A0

Function

put a null terminated string to the parallel port.


KCmpStr()

KCmpStr - compare two null terminated strings

Synopsis

mismatch = KCmpStr(string1, string2) D0 A0 A1

Function

string1 is compared to string2 using the ASCII collating sequence.