-
Notifications
You must be signed in to change notification settings - Fork 2
/
ondan_yuze.asm
57 lines (44 loc) · 914 Bytes
/
ondan_yuze.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
org 100h
.data
sayi dw ?
.code
start:
mov bl, 10
mov dx, 0
mov cx, 100
dongu:
inc dx
mov ax, dx
div bl
cmp ah, 0
je ekle
loop dongu
jmp son
ekle:
push dx
push cx
push bx
call yaz
mov dl, ' '
mov ah, 2
int 21h
pop bx
pop cx
pop dx
loop dongu
jmp son
yaz proc
mov ax, dx
aam
add ax, 3030h
push ax
mov dl, ah
mov ah, 02h
int 21h
pop dx
mov ah, 02h
int 21h
ret
yaz endp
son:
ret