C-64 Programmer's reference guide

Page 200

C64PRG10 272

BASIC TO MACHINE LANGUAGE

~ +--------+-------------------+------------------------------------------+ | | ADDRESS | | | NAME +---------+---------+ FUNCTION | | | HEX | DECIMAL | | +--------+---------+---------+------------------------------------------+ | PLOT | $FFF0 | 65520 | Read/set X,Y cursor position | | RAMTAS | $FF87 | 65415 | Initialize RAM, allocate tape buffer, | | | | | set screen $0400 | | RDTIM | $FFDE | 65502 | Read real time clock | | READST | $FFB7 | 65463 | Read I/O status word | | RESTOR | $FF8A | 65418 | Restore default I/O vectors | | SAVE | $FFD8 | 65496 | Save RAM to device | | SCNKEY | $FF9F | 65439 | Scan keyboard | | SCREEN | $FFED | 65517 | Return X,Y organization of screen | | SECOND | $FF93 | 65427 | Send secondary address after LISTEN | | SETLFS | $FFBA | 65466 | Set logical, first, and second addresses| | SETMSG | $FF90 | 65424 | Control KERNAL messages | | SETNAM | $FFBD | 65469 | Set file name | | SETTIM | $FFDB | 65499 | Set real time clock | | SETTMO | $FFA2 | 65442 | Set timeout on serial bus | | STOP | $FFE1 | 65505 | Scan stop key | | TALK | $FFB4 | 65460 | Command serial bus device to TALK | | TKSA | $FF96 | 65430 | Send secondary address after TALK | | UDTIM | $FFEA | 65514 | Increment real time clock | | UNLSN | $FFAE | 65454 | Command serial bus to UNLISTEN | | UNTLK | $FFAB | 65451 | Command serial bus to UNTALK | | VECTOR | $FF8D | 65421 | Read/set vectored I/O | +--------+---------+---------+------------------------------------------+

BASIC TO MACHINE LANGUAGE

273

~ B-1. Function Name: ACPTR Purpose: Get data from the serial bus Call address: $FFA5 (hex) 65445 (decimal) Communication registers: A Preparatory routines: TALK, TKSA Error returns: See READST Stack requirements: 13 Registers affected: A, X

Description: This is the routine to use when you want to get information from a device on the serial bus, like a disk. This routine gets a byte of data off the serial bus using full handshaking. The data is Pagina 200


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.