Advertisement
maxim_shlyahtin

ORG

Dec 25th, 2023
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. AStack SEGMENT STACK
  2. DW 12 DUP(?)
  3. AStack ENDS
  4.  
  5. DATA SEGMENT
  6. mem1 DW -200
  7. mem2 DW 400
  8. vec1 DB 10, -20, -10, 20, -35, 45, -55, 65
  9. DATA ENDS
  10.  
  11. CODE SEGMENT
  12. ASSUME CS:CODE, DS:DATA, SS:AStack
  13.  
  14. push mem1
  15. push mem2
  16. mov bp, sp
  17. mov dx, [bp]+2
  18. mov bx, offset vec1
  19. add dx, 4[bx]
  20.  
  21. Main PROC FAR
  22.  
  23. Main ENDP
  24. CODE ENDS
  25. END Main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement