;********************************************************************************************** ;* * ;* LAB3-1.ASM - Assembler Laboratory ZMiTAC * ;* * ;* Sample .EXE program * ;* * ;********************************************************************************************** .model small .stack 512 .data sample_text db "Sample EXE program...", 0Dh, 0Ah, '$' .code assume ds:@data beginning: mov ax, @data ; take address of data segment mov ds, ax ; set the segment register mov ah, 09h ; write on the screen mov dx, offset sample_text ; offset of sample_text (segment in DS) int 21h mov ax, 4C00h ; end of the program int 21h end beginning