Would you like to make this site your homepage? It's fast and easy...
Yes, Please make this my home page!
==================================================================
MikeOS -- The Mike Operating System kernel
SCREEN HANDLING SYSTEM CALLS
==================================================================
os_print_string
Displays text
- IN: SI = message location (zero-terminated string)
- OUT: Nothing (registers preserved)
Example:
code here
os_clear_screen
Clears the screen to background
- IN/OUT: Nothing (registers preserved)
Example:
code here
os_move_cursor
Moves cursor in text mode
- IN: DH, DL = row, column
- OUT: Nothing (registers preserved)
Example:
code here
os_get_cursor_pos
Return position of text cursor
- OUT: DH, DL = row, column
Example:
code here
os_print_horiz_line
Draw a horizontal line on the screen
- IN: AX = line type (1 for double, otherwise single)
- OUT: Nothing (registers preserved)
Example:
code here
os_show_cursor
Turns on cursor in text mode
Example:
code here
os_hide_cursor
Turns off cursor in text mode
Example:
code here
os_draw_block
Render block of specified colour
- IN: BL/DL/DH/SI/DI = colour/start X pos/start Y pos/width/finish Y pos
- OUT: Nothing
Example:
code here
os_file_selector
Show a file selection dialog
- IN: Nothing
- OUT: AX = location of filename string (or carry set if Esc pressed)
Example:
code here
os_list_dialog
Show a dialog with a list of options
- IN: AX = comma-separated list of strings to show (zero-terminated),
- BX = first help string, CX = second help string
- OUT: AX = number (starts from 1) of entry selected carry set if Esc pressed
Example:
code here
os_draw_background
Clear screen with white top and bottom bars,containing text, and a coloured middle section.
- IN: AX/BX = top/bottom string locations, CX = colour
- OUT: Nothing
Example:
code here
os_print_newline
Reset cursor to start of next line
- IN/OUT: Nothing (registers preserved)
Example:
code here
os_dump_registers
Displays register contents in hex on the screen
- IN/OUT: AX/BX/CX/DX = registers to show
Example:
code here
os_input_dialog
Get text string from user via a dialog box
- IN: AX = string location, BX = message to show
- OUT: AX = string location
Example:
code here
os_dialog_box
Print dialog box in middle of screen, with button(s)
- IN: AX, BX, CX = string locations (set registers to 0 for no display)
- IN: DX = 0 for single 'OK' dialog, 1 for two-button 'OK' and 'Cancel'
- OUT: If two-button mode, AX = 0 for OK and 1 for cancel
- NOTE: Each string is limited to 40 characters
Example:
code here
os_print_space
Print a space to the screen
Example:
code here
os_dump_string
Dump string as hex bytes and printable characters
- IN: SI = points to string to dump
- OUT: Nothing
Example:
code here
os_print_digit
Displays contents of AX as a single digit
Works up to base 37, ie digits 0-Z
- IN: AX = "digit" to format and print
- OUT: Nothing
Example:
code here
os_print_1hex
Displays low nibble of AL in hex format
- IN: AL = number to format and print
- OUT: Nothing
Example:
code here
os_print_2hex
Displays AL in hex format
- IN: AL = number to format and print
- OUT: Nothing
Example:
code here
os_print_4hex
Displays AX in hex format
- IN: AX = number to format and print
- OUT: Nothing
Example:
code here
os_input_string
Take string from keyboard entry
- IN/OUT: AX = location of string, other regs preserved
- (Location will contain up to 255 characters, zero-terminated)
Example:
code here
RETURN TO MAIN PAGE