The Programmer's Guide to TRSDOS Version 6 - Tim Mann's Home ...
The Programmer's Guide to TRSDOS Version 6 - Tim Mann's Home ...
The Programmer's Guide to TRSDOS Version 6 - Tim Mann's Home ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
HL Contains the row (0-23) in register H, and column (0-79) in L.<br />
Exit:<br />
A Will contain the error code if an error was encountered.<br />
Z Set if the operation was successful.<br />
OBTAIN CURSOR POSITION<br />
Registers Affected: AF, B, HL.<br />
Entry:<br />
B 4; Obtains the current cursor position by row and column.<br />
Exit:<br />
HL Contains the row (0-23) in register H, and column (0-79) in L.<br />
A Will contain the error code if an error was encountered.<br />
BUFFER TO VIDEO<br />
Registers Affected: AF, BC, DE, HL.<br />
Entry:<br />
B 5; Moves a BLOCK of RAM <strong>to</strong> the video RAM.<br />
HL A pointer <strong>to</strong> the user's RAM BLOCK.<br />
Exit:<br />
A Will contain the error code if an error was encountered.<br />
Z Set if the operation was successful.<br />
BLOCK is 1920 bytes for 6.2, 2048 bytes for 6.0 and 6.1<br />
VIDEO TO BUFFER<br />
Registers Affected: AF, BC, DE, HL.<br />
Entry:<br />
B 6; Moves the video RAM image <strong>to</strong> a RAM BLOCK.<br />
HL A pointer <strong>to</strong> the user's RAM BLOCK.<br />
Exit:<br />
A Will contain the error code if an error was encountered.<br />
Z Set if the operation was successful.<br />
BLOCK is 1920 bytes for 6.2, 2048 bytes for 6.0 and 6.1<br />
SCROLL PROTECT<br />
Registers Affected: AF, B.<br />
Entry:<br />
B 7, Inhibit scrolling of lines at the <strong>to</strong>p of the video screen.<br />
C Contains the number of lines <strong>to</strong> protect (0-7).<br />
7-41