Microcomputer Principle Experiment 1 Set the stack pointer SP=2000H, AX=3000H... (assembly language)

Set the stack pointer SP=2000H, AX=3000H, BX=5000H; use the stack as the intermediate unit for exchanging contents of the two registers to realize the exchange of contents of AX and BX, and use DEBUG for assembly and debugging.
————————————————
mov ax,3000
mov bx,5000
mov sp,2000
mov ss,ax
push ax
push bx
pop ax
pop bx
mov ax,4c00h
int 21h
———— ————————————
End

Guess you like

Origin blog.csdn.net/NikoHsu/article/details/106304232