-
Notifications
You must be signed in to change notification settings - Fork 2
/
String_Ters_Cevirme.asm
51 lines (39 loc) · 1.01 KB
/
String_Ters_Cevirme.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
.MODEL SMALL
.STACK 64
.DATA
kaynak DB 21,0,22 DUP ('$')
ters DB 21,0,22 DUP('$')
sonuc db 21,0,22 DUP('$')
.CODE
BASLA:
MOV AX,@DATA
MOV DS,AX
EKRAN:
LEA DX,kaynak+2
MOV AH,09H
INT 21H
MOV CL,00
MOV AH,01H
OKU:
INT 21H
MOV BL,AL
PUSH BX
inc cx
CMP AL,0DH
JZ EKRAN2
JMP OKU
EKRAN2:
LEA DX,ters+2
MOV AH,09H
INT 21H
lea dx, sonuc
mov ah,09h
int 21h
SONUC1:
MOV AH,02H
POP BX
MOV DL,BL
INT 21H
LOOP SONUC1
.EXIT
END BASLA