This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: : Get the first number in AX register. Step III : Get the second number in BX register. Step IV : Multiply the two 16 bit signed numbers. Step V : Stop Flowchart : Refer flowchart 50. Flowchart 50 Microprocessors & Applications (UPTU) Appendix B Program : .model small .data a dw 8000H ; Negative number as MSB = 1 b dw 2000H ; Positive number as MSB = 0 .code mov ax, @data ; Initialize data section mov ds, ax mov ax, a ; Load number1 in ax mov bx, b ; Load number2 in bx imul bx ; multiply numbers. Result in dx and ax end Result : F000 0000 H with DX = F000 H and AX = 0000 H i.e. result in negated form as result is negative....
View Full Document
- Spring '11