Two programs ones high level assembly programming using kip Irvine32.inc the other using low level MASM.
MASM1
2 smpile example showing instructions / call dumpregs and how to use low level Assembly
Prog1 :
Include Irvine32.inc
.code
main proc
mov eax, 5000000h
add eax, 3000h
inc ah
dec al
call dumpregs
exit
main endp
end main
Program 2
.model small
.stack 100
.data
.code
begin:
mov ax, @data
mov ds, ax
mov ax, 5000h
add ax, 20h
inc ah
dec al
mov ah, 4ch
int 21h
end begin