C02/doc/include/func-idx.txt

207 lines
15 KiB
Plaintext

Function Library Name Description
abs stdlib Absolute Value Return absolute value of byte.
adddst stddef Add Destination Add value to Destination Pointer.
addsrc stddef Add Source Add value to Source Pointer.
addzpw stddef Add Zero Page Word Add value to word in zero page
anykey stdiox Any Key Display "ANY KEY" prompt and wait for keypress.
atoc stdlib ASCII to Character Convert numeric string to byte.
atoi intlib ASCII to Integer Convert string to integer.
blkbgn block Block Begin Set beginning of block address.
blkend block Block End Set end of block address.
blkseg block Block Segment Set block segment size.
blkset block Block Set Fill entire block with character.
blkrst block Block Reset Set block pointer to beginning of block.
blknxt block Block Next Move block pointer forward one segment.
blkput block Block Append Copy bytes from array to current segment.
blkget block Block Get Copy bytes from current segment to array.
blkmem block Block Memory Search block for segment matching array.
blkstr block Block String Search block for segment beginning with string.
blkswp block Block Swap Swap bytes of array with the current segment.
blksrt block Block Sort Sort segments in block by initial string.
button paddle Button Read paddle button controller status.
char stdlib Char from integer Convert Integer to Character
chdir direct Change Directory Change to specified directory
chdrv direct Change Drive Change to specified drive
ctoa stdlib Character to ASCII Convert byte to numeric string.
div stdlib Divide Divide two bytes.
drvnam direct Drive Name Return name of specified drive
failed test Failed Write " Fail" to screen.
failln test Failed Line Write " Fail" plus newline to screen.
fclose fileio File Close Close file.
feof fileio File End of File Check for end of file condition.
ferror fileio File Error Get file error information.
fflush fileio File Flush Flush output buffer to file.
fgetc fileio File Get Character Read character from file.
fgets fileio File Get String Read string from file.
fopen fileio File Open Open file.
florps test Fail or Pass Write " Fail" or " Pass" to screen.
flpsln test Fail or Pass Line Write " Fail" or " Pass" plus newline to screen.
fputc fileio File Put Character Write character to file.
fputln fileio File Put Line Write line to file.
fputs fileio File Put String Write string to file.
fread fileio File Read Read bytes from file.
fsaddr fileio File Set Address Set address for fread, fwrite, fsave, or fload.
fsinit fileio File System Init Initialize file system.
fsname fileio File Set Name Set filename for fopen, fsave, or fload.
fwrite fileio File Write Write bytes to file.
getc stdio Get Character Read character from keyboard.
getcpr stdiox Get Char Prompt Display prompt and wait for keypress.
getcwd direct Get CWD Return current working directory
getdrv direct Get Drive Return current drive identifier
getdst stddef Get Destination Get address in Destination Pointer.
gets stdio Get String Read string from keyboard.
getsrc stddef Get Source Get address in Source Pointer.
iabs intlib Integer Absolute Return absolute value of integer.
iacc intlib Integer Accumulator Set integer accumulator.
iadd intlib Integer Add Add two integer values.
iaddc intlib Integer Add Character Add character and integer value.
icmp intlib Integer Compare Compare two integer values.
idiv intlib Integer Divide Divide integer values by integer value.
imax intlib Integer Maximum Return greater of two integers.
imin intlib Integer Minimum Return lesser of two integers.
imod intlib Integer Modulo Return modulus of two integer values.
imult intlib Integer Multiply Multiply two integer values.
imultc intlib Integer Multiply Char Multiply character and integer value.
ineg intlib Integer Negate Return Negative of integer value.
int stdlib Int from character Convert Character to Integer
intay stdlib Int from A,Y Convert Character Pair to Integer
isalnm ctype Is Alphanumeric Return TRUE if character is A-Z, a-z, or 0-9.
isalnu ctype Is Alphanumunder Return TRUE if character is A-Z, a-z, 0-9, or _.
isalph ctype Is Alphabetic Return TRUE if character is A-Z or a-z.
isalud ctype Is Alphanumundot Return TRUE if character is A-Z, a-z, 0-9, ., or _.
isbdgt ctype Is Binary Digit Return TRUE if character is 0 or 1.
isctrl ctype is Control Return TRUE if ASCII code is 0-31 or 127.
isdigt ctype Is Digit Return TRUE if character is 0-9.
isgrph ctype Is Graphical Return TRUE if ASCII code is 33-126.
ishdgt ctype Is Hex Digit Return TRUE if character is 0-9, A-F, or a-f.
ishftl intlib Integer Shift Left Shift integer left specified number of bits.
ishftr intlib Integer Shift Right Shift integer right specified number of bits.
islowr ctype Is Lowercase Return TRUE if character is a-z.
ispnct ctype Is Punctuation Return TRUE if Graphical and not Alphanumeric.
isprnt ctype Is Printable Return TRUE if ASCII code is 32-126.
isspce ctype Is white Space Return TRUE if ASCII code is 9-13 or 32.
isub intlib Integer Subtract Subtract two integer values.
isuppr ctype Is Uppercase Return TRUE if character is A-Z.
itoa intlib Integer to ASCII Convert Integer to String.
joystk joystk Joystick Read Atari style joystick controller status.
lgtpen lgtpen Light Pen Read light pen status.
maddr memio Memory Address Return address contained in memory file pointer.
max stdlib Maximum Return greater of two bytes.
mclose memio Memory Close Close memory file.
memdst memory Memory Destination Set destination array for subsequent functions.
memset memory Memory Set File bytes in array with byte.
memchr memory Memory Character Search for byte in array.
memclr memory Memory Clear File bytes in array with $00.
memcmp memory Memory Compare Compare bytes in array against destination array.
memcpy memory Memory Copy Copy bytes from array to destination array.
memswp memory Memory Swap Swap bytes in array with destination array.
mflush memio Memory Flush Flush memory file.
mgetc memio Memory Get Character Read single character from memory file.
mgets memio Memory Get String Read string from memory file.
min stdlib Minimum Return lesser of two byte.
mkdir direct Make Directory Create specified directory
mopen memio Memory Open Open memory file.
mputc memio Memory Put Character Write single character to memory file.
mputln memio Memory Put String Write string followed by newline to memory file.
mputs memio Memory Put String Write string to memory file.
mult stdlib Multiply Multiply two bytes.
opndir dirent Open Directory Open directory for reading
pack bitlib Pack nybbles Pack two nybbles into a single byte.
paddle paddle Paddle Read paddle controller position.
passed test Passed Write " Pass" to screen.
passln test Passed Line Print " Pass" plus newline to screen.
psflln test Pass or Fail Line Write " Pass" or " Fail" plus newline to screen.
psorfl test Pass or Fail Write " Pass" or " Fail" to screen.
ptrset pointer Pointer Set Write pointer to address.
ptrput pointer Pointer Put Write byte and increment pointer.
ptrget pointer Pointer Get Read byte and increment pointer.
ptrinc pointer Pointer Increment Increment pointer.
ptrdec pointer Pointer Decrement Decrement pointer.
ptradd pointer Pointer Add Add value to pointer.
ptrsub pointer Pointer Subtract Subtract value from pointer.
ptrcmp pointer Pointer Compare Compare pointer against address.
ptrsav pointer Pointer Save Save pointer into two-byte array.
ptrrst pointer Pointer Restore Restore pointer from two-byte array.
printf stdiox Print Formatted Write formatted byte and/or string/address to screen.
putadr test Put Address Write "address=" and hexadecimal address to screen.
putbin stdiox Put Binary Write byte to screen as binary number.
putc stdio Put Character Write character to screen.
putdec stdiox Put Decimal Write byte to screen as decimal number.
putdeh stdiox Put Decimal Hundred Write byte mod 100, zero-filled to screen.
putdel stdiox Put Decimal Left Write byte to screen as left-justified decimal.
putder stdiox Put Decimal Right Write byte to screen as right-justified decimal.
putdez stdiox Put Decimal Zero``` Write byte zero-filled to screen.
putdst stdiox Put Destination Write destination string to screen.
putexh stdiox Put Extended Hex Write 24 bit number to screen as hexadecimal number.
puthex stdiox Put Hexadecimal Write byte to screen as hexadecimal number.
putinr stdiox Put Integer Right Write integer to screen as right justified decimal number.
putint stdiox Put Integer Write integer to screen as decimal number.
putln stdio Put Line Write string plus newline to screen.
putnyb stdiox Put Nybble Write low nybble to screen as hexadecimal digit.
puts stdio Put String Write string to screen.
putmsk stdiox Put Mask Write bit masked byte to screen as binary number.
putrpc stdiox Put Repeated Char Write character multiple times to screen.
putrps stdiox Put Repeated Spaces Write multiple spaces to screen.
putspc stdiox Put Space Write space character to screen.
putsub stdio Put Substring Write substring to screen.
putwrd stdiox Put Word Write integer to screen as hexadecimal number.
rand stdlib Random Generate pseudorandom number.
rands stdlib Random Seed Seed random number generator.
rddir dirent Read Directory Read Directory Entry
rdhdr dirent Read Header Read Directory Header
rmdir direct Remove Directory Remove specified directory
resdst stddef Restore Destination Restore Destination Pointer from TEMP variables.
resreg stddef Restore Registers Restore A, X, and Y registers from TEMP variables.
resrxy stddef Restore Reg. X and Y Restore X, and Y registers from TEMP variables.
ressrc stddef Restore Source Restore Source Pointer from TEMP variables.
rotl bitlib Rotate Left Rotate byte left specified number of bits.
rotr bitlib Rotate Right Rotate byte right specified number of bits.
savdst stddef Save Destination Save Destination Pointer in TEMP variables.
savreg stddef Save Registers Save A, X, and Y registers in TEMP variables.
savrxy stddef Save Reg. X and Y Save X, and Y registers in TEMP variables.
savsrc stddef Save Source Save Source Pointer in TEMP variables.
setdss stddef Set Dest. Source Set Destination Pointer to Source Pointer.
setdst stddef Set Destination Set Destination Pointer to address.
setsrc stddef Set Source Set Source Pointer to address.
setsrd stddef Set Source Dest. Set Source Pointer to Destination Pointer.
shiftl bitlib Shift Left Shift byte left specified number of bits.
shiftr bitlib Shift Right Shift byte right specified number of bits.
stkbgn stack Stack Begin Set start of stack address.
stkdup stack Stack Duplicate Duplicate top entry of stack.
stkend stack Stack End Set end of stack address.
stkovr stack Stack Over Copy second from top entry of stack to top.
stkpop stack Stack Pop Remove entry from top of stack.
stkpsh stack Stack Push Push array contents onto top of stack.
stkptr stack Stack Pointer Get stack pointer address.
stkrst stack Stack Reset Initialize or clear stack.
stkset stack Stack Set Set stack pointer to address.
stkstr stack Stack String Push string onto top of stack.
stktop stack Stack Top Get entry from top of stack without popping it.
stkswp stack Stack Swap Swap top entry of stack with entry below it.
strapd string String Append Append character to string.
strcat string String Concatenate Concatenate string to destination string.
strchr string String Character Search for character in string.
strcmp string String Compare Compare string contents against destination string.
strcms string String Compare Source Compare source string against destination string.
strcps string String Copy Source Copy source string to destination string.
strcpy string String Copy Copy string contents to destination string.
strcsp stringx String Char Span Return length of span in destination not in string.
strcut string String Cut Copy substring to destination string.
strget stringl String Get Read entry from string list.
strlen string String Length Calculate length of string.
strlln stringl String List Length Calculate number of entries in string list
strlwr stringm String Lower Convert string to lowercase.
strpbk stringx String Pointer Break Find first character in destination found in string.
strpad stringm String Pad Pad or truncate string.
strppd string String Prepend Prepend character to string.
strput stringl String Put Write entry to string list.
strrch string String Reverse Char Search for character from end of string.
strspn stringx String Span Return length of span in destination found in string.
strstr string String String Search for string in destination string.
strupr stringm String Upper Convert string to uppercase.
swap bitlib Swap nybbles Swaps left and right nybbles in byte.
tolowr ctype To Lowercase Convert character to lowercase.
touppr ctype To Uppercase Convert character to uppercase.
trufls test True or False Convert value to #TRUE or #FALSE.
unpack bitlib Unpack nybbles Unpack byte into two nybbles.