Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Hello-world-Text/X86-Assembly/hello-world-text-1.x86
Normal file
15
Task/Hello-world-Text/X86-Assembly/hello-world-text-1.x86
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
section .data
|
||||
msg db 'Hello world!', 0AH
|
||||
len equ $-msg
|
||||
|
||||
section .text
|
||||
global _start
|
||||
_start: mov edx, len
|
||||
mov ecx, msg
|
||||
mov ebx, 1
|
||||
mov eax, 4
|
||||
int 80h
|
||||
|
||||
mov ebx, 0
|
||||
mov eax, 1
|
||||
int 80h
|
||||
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