SHOW:
|
|
- or go back to the newest paste.
1 | include 'emu8086.inc' | |
2 | ||
3 | .model small | |
4 | .stack 100h | |
5 | ||
6 | .data ; Data Segment | |
7 | ||
8 | .code ;Code Segment | |
9 | ||
10 | main proc | |
11 | ||
12 | - | mov al , 8 |
12 | + | mov al , 2 |
13 | mov bl , 3 | |
14 | ||
15 | - | div bl ; division al & bl register |
15 | + | mul bl ; multiplication al & bl register |
16 | ||
17 | mov bx , ax | |
18 | ||
19 | ; prine here result [ vagfol ] | |
20 | ||
21 | - | print 'Result : ' |
21 | + | print 'Multiplicaiton of two number : ' |
22 | - | mov dl , bh |
22 | + | mov dl , bl |
23 | add dl , 48 | |
24 | ||
25 | mov ah , 02h | |
26 | int 21h | |
27 | ||
28 | - | ; here new line print |
28 | + | |
29 | ||
30 | - | mov dl , 10 |
30 | + | |
31 | ||
32 | - | int 21h |
32 | + |