; multi-segment executable file template. data segment ; add your data here! pKey db 'Please enter a key$' ends stack segment dw 128 dup(0) ends code segment start: ; set segment registers: mov ax, data mov ds, ax ; preparing initial configuration in memory mov [0xA010],0xA5 mov [0xA011],0xAF mov [0xA012],0xF1 mov [0xA013],0xA1 mov [0xA014],0xD4 mov [0xA015],0xC2 ; preparing initial configuration in registers mov ax,0xB12A mov bx,0x10A2 mov cx,0xF3A0 mov dx,0x1114 ; programming mov bl,bh mov bh,cl mov ax,[bx] mov bl,dl mov [bx],ax ; wait for any key.... lea dx,pKey mov ah,09 int 21h mov ah, 1 int 21h mov ax, 4c00h ; exit to operating system. int 21h ends end start ; set entry point and stop the assembler.