44 lines
1.2 KiB
NASM
44 lines
1.2 KiB
NASM
include 'programmacros.asm'
|
|
|
|
FUNCTABLE EQU 7E00h
|
|
clear EQU word [7E00h]
|
|
detect_video EQU word [7E02h]
|
|
print_string EQU word [7E04h]
|
|
print_symbol EQU word [7E06h]
|
|
input_string EQU word [7E08h]
|
|
compare_strings EQU word [7E0Ah]
|
|
copy_string EQU word [7E0Ch]
|
|
calculate_string_len EQU word [7E0Eh]
|
|
os_print_digit EQU word [7E10h]
|
|
os_print_1hex EQU word [7E12h]
|
|
os_print_2hex EQU word [7E14h]
|
|
print_hex EQU word [7E16h]
|
|
print_registers EQU word [7E18h]
|
|
string_to_int EQU word [7E1Ah]
|
|
int_to_string EQU word [7E1Ch]
|
|
dbg_halt_cpu EQU word [7E1Eh]
|
|
halt_cpu EQU word [7E20h]
|
|
its EQU word [7E22h]
|
|
find_file EQU word [7E24h]
|
|
remove_file EQU word [7E26h]
|
|
write_table EQU word [7E28h]
|
|
arg1 EQU word [7E2Ah]
|
|
arg2 EQU word [7E2Ch]
|
|
arg3 EQU word [7E2Eh]
|
|
reset_buffer EQU word [7E30h]
|
|
append_file EQU word [7E32h]
|
|
rename_file EQU word [7E34h]
|
|
|
|
org 1000h
|
|
|
|
start:
|
|
print greetings, ln
|
|
ret
|
|
|
|
2d_input
|
|
|
|
|
|
greetings db "Welcome to the notepad!", 0
|
|
zx db "0x", 0
|
|
ln db 0Dh, 0Ah, 0
|
|
space db " ", 0 |