Data update

This commit is contained in:
Ingy döt Net 2024-10-16 18:07:41 -07:00
parent 81fd053722
commit 52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions

View file

@ -0,0 +1,5 @@
a
Hello World!
.
p
Q

View file

@ -0,0 +1 @@
println("Hello world!")

View file

@ -0,0 +1,2 @@
SELECT 'Hello world!' AS greeting;
VALUES ('Hello world!');

View file

@ -0,0 +1 @@
output "Hello world!\n";

View file

@ -0,0 +1 @@
print "Hello world!"

View file

@ -4,7 +4,7 @@ LET NL=10;
EXT PROC(REF ARRAY BYTE) TWRT;
ENT PROC INT RRJOB();
ENT PROC RRJOB()INT;
TWRT("Hello world!#NL#");
RETURN(1);

View file

@ -0,0 +1 @@
'Hello World' !

View file

@ -1,3 +1 @@
fn main() {
println('Hello World!')
}
println('Hello World!')

View file

@ -0,0 +1,2 @@
T:Hello world!
S:

View file

@ -0,0 +1,21 @@
; compile with:
; nasm -f elf64 hello0.asm -o hello0.o
; ld hello0.o -o hello0 -z noexecstack -no-pie -s
global _start
section .text
_start:
.write:
mov rax, 1
mov rdi, 1
mov rsi, message
mov rdx, 14
syscall
.exit:
mov rax, 60
xor rdi, rdi
syscall
section .data
message: db "Hello, World!", 0x0a

View file

@ -0,0 +1,20 @@
; compile with:
; nasm -f elf64 hello1.asm -o hello1.o
; gcc hello1.o -o hello1 -z noexecstack -no-pie -s
; or
; tcc hello1.o -o hello1
global main
extern puts
section .text
main:
mov rdi, message
sub rsp, 8
call puts
add rsp, 8
xor rax, rax
ret
section .data
message: db "Hello, World!", 0

View file

@ -0,0 +1,19 @@
global _start
section .text
_start:
mov rdi, `Hello, W`
mov rax, `orld!\n\0\0`
push rax
push rdi
mov rax, 1
mov rdi, 1
mov rsi, rsp
mov rdx, 14
syscall
pop rdi
pop rax
mov rax, 60
mov rdi, 0
syscall

View file

@ -0,0 +1,23 @@
;compile with: fasm hello.asm hello
; chmod 755 hello
;run with: ./hello
format ELF64 executable 3 ;Linux 64 bit executable
entry _start ;label to start execution
segment executable readable ;code segment
_start:
.write:
mov rax, 1 ; sys_write
mov rdi, 1 ; stdout
mov rsi, message ; pointer to string to write
mov rdx, endmessage - message ; length of string
syscall ; print the string
.exit:
mov rax, 60 ; sys_exit
xor rdi, rdi ; exit code 0
syscall ; exit program
segment readable writable ; 'data' segment
message: db "Hello, World!" ; message to print
db 0x0a ; line feed
endmessage: ; endmessage - message = length