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 9f2c6f5 commit 23af860Copy full SHA for 23af860
ShowStars/ShowStars.asm
@@ -4,7 +4,9 @@
4
section .data
5
msg db 'Displaying 9 stars',0xa ;a message
6
len equ $ - msg ;length of message
7
- s2 times 9 db '*',0xa
+ s2 times 9 db '*'
8
+ brkln db '', 0xa ; breakline
9
+ brklen equ $ - brkln
10
11
section .text
12
global _start
@@ -21,6 +23,12 @@ _start:
21
23
mov ebx,1 ;file descriptor (stdout)
22
24
mov eax,4 ;system call number (sys_write)
25
int 0x80 ;call kernel
26
+
27
+ mov edx, brklen
28
+ mov ecx, brkln
29
+ mov ebx, 1
30
+ mov eax, 4
31
+ int 0x80
32
33
mov eax,1 ;system call number (sys_exit)
34
0 commit comments