3. 26AE CS 0044 IP Instruction address = ??????? Motaz K. Saad, Dept. of CS
4. 26AE CS 0044 IP Instruction address = 26AE0 + 0044 _______________________ 26B24 25BD DS A03F00 26B24 Data address=?????? Motaz K. Saad, Dept. of CS
5. 26AE CS 0044 IP Data address = 25BD0 + 003F _______________________ 25C0F 25BD DS Motaz K. Saad, Dept. of CS
6.
7.
8. ; <your comments> ; Add two numbers and store the results into the third variable TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV DS,AX ; segment in DS MOV AX,FLDD ;Move 0215 to AX ADD AX,FLDE ;Add 0125 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program Comments COMMENTS Motaz K. Saad, Dept. of CS
9. ; Add two numbers and store the results into the third variable TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 0215H FLDE DW 0125H FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV @DATA ;Set address of data MOV DS,AX ;Segment in DS MOV AX,FLDD ;Move 0215 to AX ADD AX,FLDE ;Add 0125 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program IDENTIFIERS Motaz K. Saad, Dept. of CS
10.
11.
12.
13.
14. ; Add two numbers and store the results into the third variable page 60,132 TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV DS,AX ;Segment in DS MOV AX,FLDD ;Move 0215 to AX ADD AX,FLDE ;Add 0125 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program STATEMENTS Motaz K. Saad, Dept. of CS
15.
16. ; Add two numbers and store the results into the third variable page 60,132 page [length(10-255)],[width(60-132)] TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV DS,AX ;Segment in DS MOV AX,FLDD ;Move 0215 to AX ADD AX,FLDE ;Add 0125 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program Page directive Motaz K. Saad, Dept. of CS
17. ; Add two numbers and store the results into the third variable page 10,70 TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV DS,AX ;Segment in DS MOV AX,FLDD ;Move 0215 to AX ADD AX,FLDE ;Add 0125 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program Page directive Motaz K. Saad, Dept. of CS
18. Title directive Motaz K. Saad, Dept. of CS ; Add two numbers and store the results into the third variable page 10,70 TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV DS,AX ;Segment in DS MOV AX,FLDD ;Move 0215 to AX ADD AX,FLDE ;Add 0125 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program
19. ; Add two numbers and store the results into the third variable page 60,132 TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ;End of procedure END MAIN ;End of program Segment directive Motaz K. Saad, Dept. of CS
20. ; Add two numbers and store the results into the third variable page 60,132 TITLE A04ASM1 (EXE) Move and add operations ; --------------------------------------------- .STACK ; ---------------------------------------------- .DATA FLDD DW 215 FLDE DW 125 FLDF DW ? ; ----------------------------------------------- .CODE MAIN PROC MOV AX,@DATA ;Set address of data MOV DS,AX ;Segment in DS MOV AX,FLDD ;Move 0215 to AX MOV FLDF,AX ;Store sum in FLDF MOV AX,4C00H ;End processing INT 21H MAIN ENDP ; End of procedure END MAIN ;End of program PROC directive Motaz K. Saad, Dept. of CS