Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -1,5 +1,5 @@
|
|||
section .data
|
||||
msg db 'Goodbye, World!', 0AH
|
||||
msg db 'Hello world!', 0AH
|
||||
len equ $-msg
|
||||
|
||||
section .text
|
||||
14
Task/Hello-world-Text/X86-Assembly/hello-world-text-2.x86
Normal file
14
Task/Hello-world-Text/X86-Assembly/hello-world-text-2.x86
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
.section .text
|
||||
|
||||
.globl main
|
||||
|
||||
main:
|
||||
movl $4,%eax #syscall number 4
|
||||
movl $1,%ebx #number 1 for stdout
|
||||
movl $str,%ecx #string pointer
|
||||
movl $16,%edx #number of bytes
|
||||
int $0x80 #syscall interrupt
|
||||
ret
|
||||
|
||||
.section .data
|
||||
str: .ascii "Hello world!\12"
|
||||
Loading…
Add table
Add a link
Reference in a new issue