Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .model small
- .stack 256h
- .data
- x1 dw 10
- x2 dw -420
- x3 dw 462
- x4 dw -42
- result1 dw 0
- result2 dw 0
- result3 dw 0
- result4 dw 0
- .code
- main proc
- mov ax, @data
- mov ds, ax
- push x1
- mov ax, x2
- imul ax, x4
- mov result1, ax
- mov ax, x3
- sub ax, x1
- mov result2, ax
- mov ax, x3
- shl ax, 8
- mov result3, ax
- mov ax, x2
- xor ax, x3
- mov result4, ax
- mov ax, 4c00h
- int 21h
- main endp
- end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement