












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













Byte 7 6 5 4 3 2 1 0 Word 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 High Byte Low Byte Note: When a word is stored in memory, the low byte is stored in the lower address and the high byte is stored in the higher address.
TITLE PGM1_1: SAMPLE PROGRAM ;----------------------------> IN YU'S BOOK ON PAGE 14 .MODEL SMALL .STACK 100h .DATA A DW 2 B DW 5 SUM DW? .CODE MAIN PROC ;----------------------------> INITIALIZE DS MOV AX,@DATA MOV DS,AX ;----------------------------> ADD A AND B - PLACE RESULT IN SUM MOV AX,A ADD AX,B MOV SUM,AX ;----------------------------> EXIT TO DOS MOV AX,4C00h INT 21h MAIN ENDP END MAIN