forked from miguelmota/x86-assembly-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathartists.asm
executable file
·47 lines (34 loc) · 948 Bytes
/
artists.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
; Description: This program defines artists
; and outputs an artist's name.
TITLE MASM Template (main.asm)
INCLUDE Irvine32.inc
.data
; define symbolic names
Surrealism BYTE "Salvador Dali", 0dh, 0ah, 0
Abstract BYTE "Jackson Pollock", 0dh, 0ah, 0
Impressionism BYTE "Renoir", 0dh, 0ah, 0
; define artist variables
artist1 = Surrealism
artist2 = Abstract
artist3 = Impressionism
.code
main PROC
call Clrscr
; display artist
mov edx, offset artist1
call WriteString
call DumpRegs
exit
main ENDP
END main
; =======================================
; OUTPUT
; =======================================
COMMENT !
Salvador Dali
EAX=75363358 EBX=7EFDE000 ECX=00000000 EDX=00405000
ESI=00000000 EDI=00000000 EBP=0018FF94 ESP=0018FF8C
EIP=00401024 EFL=00000202 CF=0 SF=0 ZF=0 OF=0 AF=0 PF=0
Press any key to continue . . .
!
; =======================================