We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64e7862 commit f49b307Copy full SHA for f49b307
ShowStars/ShowStars.asm
@@ -2,12 +2,25 @@
2
; x86 architecture
3
; Intel specification
4
section .data
5
-
+ msg db 'Displaying 9 stars',0xa ;a message
6
+ len equ $ - msg ;length of message
7
+ s2 times 9 db '*'
8
9
section .text
10
global _start
11
12
_start:
13
+ mov edx,len ;message length
14
+ mov ecx,msg ;message to write
15
+ mov ebx,1 ;file descriptor (stdout)
16
+ mov eax,4 ;system call number (sys_write)
17
+ int 0x80 ;call kernel
18
+
19
+ mov edx,9 ;message length
20
+ mov ecx,s2 ;message to write
21
22
23
24
25
+ mov eax,1 ;system call number (sys_exit)
26
0 commit comments