-
Notifications
You must be signed in to change notification settings - Fork 10
/
2015-11-16 Esercizio 20.asm
75 lines (33 loc) · 1.18 KB
/
2015-11-16 Esercizio 20.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
;scrivere un programma che verifichi se un
;carattere inserito da tasriera e una cifra
;in caso contrario il programma continua a
;chiedere di inserire una cifra
.model TINY
COST1 EQU 23
COST2 EQU 18h
.code
org 100h
inizio:
mov dx,offset stringa1
mov ah,01
int 21h
mov var,al
cmp var,39h
jmp ciclo1
cmp var,30h
jnz ciclo1
ciclo1:
mov dx,offset stringa2
mov,ah,09h
int 21h
ciclo:
mov dx,offset stringa
mov,ah,09h
int 21h
fine:
.data
var DB 10h
stringa1 DB
stringa2 DB
;devo dichiarare ancora tutte le variabili
END prog