-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestDBG.asm
75 lines (50 loc) · 1.02 KB
/
TestDBG.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
; aula 17/04 - arq 2
; Adds two 32-bit integers. Used to Windbg test
Include ..\Irvine32.inc
.data
val1 DWORD 0 ;ex 1
val2 DWORD 0
val3 DWORD 0
val4 DWORD 0
val5 DWORD 0 ; ex 2
val6 DWORD 0 ; ex 3
val7 DWORD 0
byte1 BYTE 'A' ; ex 4
byte2 BYTE 0
byte3 BYTE 255
byte4 SBYTE -128
byte5 SBYTE +127
byte6 BYTE ?
word1 WORD 65535
word2 WORD -32768
word3 WORD ?
dword1 DWORD 0FFFFFFFFh
dword2 SDWORD -2147483648
quad1 QWORD 0123456789ABCDEFh
count NAME 500d ; ex 5 - a
rows EQU 10 ; ex 5 - b
cols EQU 15
msize EQU rows * cols
.code
main PROC
int 3
; ex 1
mov val1, 100
mov val2, 100b
mov val3, 64h
mov val4, 01100100b
; ex 2
mov val5, 100 + 100d + 64h + 01100100b
; ex 3
mov val6, 'a'
mov val7, "abcd"
; ex 5 - a
mov eax, count
mov cout, 100d
add eax, count
;;;;;
mov eax,5 ; move 5 to the eax register
add eax,6 ; add 6 to the eax register
exit
main ENDP
END main