Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AStack SEGMENT STACK
- DW 12 DUP(?)
- AStack ENDS
- DATA SEGMENT
- mem1 DW -200
- mem2 DW 400
- vec1 DB 10, -20, -10, 20, -35, 45, -55, 65
- DATA ENDS
- CODE SEGMENT
- ASSUME CS:CODE, DS:DATA, SS:AStack
- push mem1
- push mem2
- mov bp, sp
- mov dx, [bp]+2
- mov bx, offset vec1
- add dx, 4[bx]
- Main PROC FAR
- Main ENDP
- CODE ENDS
- END Main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement