;===============Assembly Print Function==================== print_string: ; Routine: output string in SI to screen mov ah, 0Eh ; int 10h 'print char' function .repeat: lodsb ; Get character from string cmp al, 0 je .done ; If char is zero, end of string int 10h ; Otherwise, print it jmp .repeat .done: ret
#include <libc.h> //Name of a header file int main(void) { printf("Hello World") //This is the print_string function before shown }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)