Writing a string | Assembler/8086 |
$
.; ; writeln ; ; input: ; textstring ; ; output: ; none (text displayed on screen) ; ; destroys: ; ax, dx ; flags ; WRITELN MACRO _string LOCAL _afterstring call _afterstring db _string,13,10,'$' _afterstring: mov ah,9 pop dx int 21h ENDMTo use it, just type:
WriteLN('Hello, world!');