-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhw 5v2
56 lines (41 loc) · 929 Bytes
/
hw 5v2
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
;TITLE Table of Procedure Offsets (ProcTble.asm)
; Character Mode Logger
; It uses the table to execute indirect procedure calls.
INCLUDE Irvine32.inc
.data
MAX BYTE
MAX = 132
ModeIndex BYTE 132 DUP(0)
CharInput BYTE MAX+1 DUP(?)
.code
main PROC
mov edx, OFFSET CharInput ;mov variable InpStr into edx
mov ecx, MAX + ;set the counter to 80
call ReadString
;call WriteString
jmp l1
mov ecx, lengthof CharInput
mov esi, OFFSET CharInput
l1: ;upper case loop
mov eax, [esi]
cmp eax, 97
jg Smaller
jl Numbers
Bigger:
Smaller:
Numbers:
loop l1
mov ecx, lengthof CharInput
mov ecx, lengthof CharInput
mov esi, OFFSET CharInput
l2: ;lower case loop
loop l2
mov ecx, lengthof CharInput
mov ecx, lengthof CharInput
mov esi, OFFSET CharInput
l3: ;get number loop
loop l3
call waitmsg
invoke exitprocess, 0
main ENDP
END main