Assembly Language Programs


(1)Macros Push and Pop
org 100h
include emu8086.inc
push ax
word dw 123h
word1 dw 456h
mov ax,word1
mov bx, word
pop bx
ret
Output:

(2)Stack in Assembly
org 100h
mov ax, 02h
mov bx, 03h
mov ax, 04h
push ax
push bx 
pop ax
ret

end


Post a Comment

Total Pageviews