use16 org 100h jmp start ;----------------------------------------------- menu db '1 - Print hello',13,10 db '2 - Print go away',13,10 db '0 - Exit',13,10,'$' select db 13,10,'Select$' hello db 13,10,'Hello!',13,10,13,10,'$' go_away db 13,10,'Go away!',13,10,13,10,'$' ;----------------------------------------------- start: mov ah,09h mov DX,menu int 21h select_loop: mov ah,09h mov DX,select int 21h mov ah,01h int 21h cmp al,'1' je c1 cmp al,'2' je c2 cmp al,'0' je exit jmp select_loop c1: mov ah,09h mov DX,hello int 21h jmp start c2: mov DX,go_away int 21h jmp start exit: mov ax,4C00h int 21h