· GET_STRING - procedure to get a null terminated string from a
user, the received string is written to buffer at DS:DI, buffer size
should be in DX. Procedure stops the input when 'Enter' is pressed.
To use it declare: DEFINE_GET_STRING before END directive.
· CLEAR_SCREEN - procedure to clear the screen, (done by scrolling
entire screen window), and set cursor position to top of it. To use it
declare: DEFINE_CLEAR_SCREEN before END directive.
· SCAN_NUM - procedure that gets the multi-digit SIGNED number
from the keyboard, and stores the result in CX register. To use it
declare: DEFINE_SCAN_NUM before END directive.
· PRINT_NUM - procedure that prints a signed number in AX
register. To use it declare: DEFINE_PRINT_NUM and
DEFINE_PRINT_NUM_UNS before END directive.
· PRINT_NUM_UNS - procedure that prints out an unsigned number
in AX register. To use it declare: DEFINE_PRINT_NUM_UNS
before END directive.
To use any of the above procedures you should first declare the
function in the bottom of your file (but before END!!), and then use CALL
instruction followed by a procedure name.
For example: