Changes

AMSDOS RSX Functions

37 bytes added, 23:57, 16 December 2010
RSX - Below Resident System ExtensionsBelow (RSX ) commands can be used under BASIC (preceeded by a "|" character), and in machine code by obtaining the function address via KL_FIND_COMMAND, for details see: [[BIOS Kernel RSX Functions (Resident System Extensions)]]
== CPM, DIR, REN, ERA ==
ERA ;in: A=01h, [IX+0]=ptr to "filename"
REN ;in: A=02h, [IX+0]=ptr to "newname",[IX+2]=to "oldname"
CPM loads the boot sector from Drive A, Track 0, Side 0, Sector 41h to 0100h..02FFh, and starts it (entrypoint=0100h). DIR displays the directory (similar to CAT, but without alphabetically sorted names, and optionally allowing to specify a filename with "*" and "?" wildcards). ERA erase a file (or multiple files with wildcards). REN renames are a file.
== DISC/TAPE.IN/.OUT ==
== Note ==
* The above function vectors are usually at ROM7:C009h..C032h in AMSDOS, however, clones like VDOS, RODOS, ROMDOS, X-DDOS have the vectors arranged differently, so always use KL_FIND_COMMAND to obtain the function address.
 
[[Category:Programming]]
4,592
edits