Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,3 @@
---
from: http://rosettacode.org/wiki/Hello_world/Text
note: Basic language learning

View file

@ -0,0 +1,15 @@
{{selection|Short Circuit|Console Program Basics}}
[[Category:Simple]]
;Task:
Display the string '''Hello world!''' on a text console.
;Related tasks:
*   [[Hello world/Graphical]]
*   [[Hello world/Line Printer]]
*   [[Hello world/Newbie]]
*   [[Hello world/Newline omission]]
*   [[Hello world/Standard error]]
*   [[Hello world/Web server]]
<br><br>

View file

@ -0,0 +1,4 @@
<:48:x<:65:=<:6C:$=$=$$~<:03:+
$~<:ffffffffffffffb1:+$<:77:~$
~<:fffffffffffff8:x+$~<:03:+$~
<:06:x-$x<:0e:x-$=x<:43:x-$

View file

@ -0,0 +1 @@
print(Hello world!)

View file

@ -0,0 +1,10 @@
HELLO CSECT
USING HELLO,15
LA 1,MSGAREA Point Register 1 to message area
SVC 35 Invoke SVC 35 (Write to Operator)
BR 14 Return
MSGAREA EQU * Message Area
DC AL2(19) Total area length = 19 (Prefix length:4 + Data Length:15)
DC XL2'00' 2 bytes binary of zeros
DC C'Hello world!' Text to be written to system console
END

View file

@ -0,0 +1,3 @@
WTO 'Hello world!'
BR 14 Return
END

View file

@ -0,0 +1 @@
echo Hello world!

View file

@ -0,0 +1,22 @@
; goodbyeworld.s for C= 8-bit machines, ca65 assembler format.
; String printing limited to strings of 256 characters or less.
a_cr = $0d ; Carriage return.
bsout = $ffd2 ; C64 KERNEL ROM, output a character to current device.
; use $fded for Apple 2, $ffe3 (ascii) or $ffee (raw) for BBC.
.code
ldx #0 ; Starting index 0 in X register.
printnext:
lda text,x ; Get character from string.
beq done ; If we read a 0 we're done.
jsr bsout ; Output character.
inx ; Increment index to next character.
bne printnext ; Repeat if index doesn't overflow to 0.
done:
rts ; Return from subroutine.
.rodata
text:
.byte "Hello world!", a_cr, 0

View file

@ -0,0 +1,31 @@
.cr 6800
.tf gbye6800.obj,AP1
.lf gbye6800
;=====================================================;
; Hello world! for the Motorola 6800 ;
; by barrym 2013-03-17 ;
;-----------------------------------------------------;
; Prints the message "Hello world!" to an ascii ;
; terminal (console) connected to a 1970s vintage ;
; SWTPC 6800 system, which is the target device for ;
; this assembly. ;
; Many thanks to: ;
; swtpc.com for hosting Michael Holley's documents! ;
; sbprojects.com for a very nice assembler! ;
; swtpcemu.com for a very capable emulator! ;
; reg x is the string pointer ;
; reg a holds the ascii char to be output ;
;-----------------------------------------------------;
outeee = $e1d1 ;ROM: console putchar routine
.or $0f00
;-----------------------------------------------------;
main ldx #string ;Point to the string
bra puts ; and print it
outs jsr outeee ;Emit a as ascii
inx ;Advance the string pointer
puts ldaa ,x ;Load a string character
bne outs ;Print it if non-null
swi ; else return to the monitor
;=====================================================;
string .as "Hello world!",#13,#10,#0
.en

View file

@ -0,0 +1,11 @@
; This is Hello World, written in 8080 assembly to run under CP/M
; As you can see, it is similar to the 8086, and CP/M is very
; similar to DOS in the way it is called.
org 100h ; CP/M .COM entry point is 100h - like DOS
mvi c,9 ; C holds the syscall, 9 = print string - like DOS
lxi d,msg ; DE holds a pointer to the string
jmp 5 ; CP/M calls are accessed through the jump at 05h
; Normally you'd CALL it, but since you'd end the program by RETurning,
; JMP saves a byte (if you've only got 64k of address space you want to
; save bytes).
msg: db 'Hello world!$'

View file

@ -0,0 +1,16 @@
DOSSEG
.MODEL TINY
.DATA
TXT DB "Hello world!$"
.CODE
START:
MOV ax, @DATA
MOV ds, ax
MOV ah, 09h ; prepare output function
MOV dx, OFFSET TXT ; set offset
INT 21h ; output string TXT
MOV AX, 4C00h ; go back to DOS
INT 21h
END START

View file

@ -0,0 +1 @@
"Hello world!\n" . bye

View file

@ -0,0 +1,22 @@
.equ STDOUT, 1
.equ SVC_WRITE, 64
.equ SVC_EXIT, 93
.text
.global _start
_start:
stp x29, x30, [sp, -16]!
mov x0, #STDOUT
ldr x1, =msg
mov x2, 13
mov x8, #SVC_WRITE
mov x29, sp
svc #0 // write(stdout, msg, 13);
ldp x29, x30, [sp], 16
mov x0, #0
mov x8, #SVC_EXIT
svc #0 // exit(0);
msg: .ascii "Hello World!\n"
.align 4

View file

@ -0,0 +1,2 @@
REPORT zgoodbyeworld.
WRITE 'Hello world!'.

View file

@ -0,0 +1 @@
(cw "Hello world!~%")

View file

@ -0,0 +1,4 @@
'BEGIN'
OUTSTRING(1,'('Hello world!')');
SYSACT(1,14,1)
'END'

View file

@ -0,0 +1,3 @@
main: (
printf($"Hello world!"l$)
)

View file

@ -0,0 +1,3 @@
BEGIN
WRITE( "Hello world!" );
END

View file

@ -0,0 +1,3 @@
begin
write( "Hello world!" )
end.

View file

@ -0,0 +1 @@
echo["Hello, World!"]

View file

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

View file

@ -0,0 +1,12 @@
.global main
message:
.asciz "Hello world!\n"
.align 4
main:
ldr r0, =message
bl printf
mov r7, #1
swi 0

View file

@ -0,0 +1 @@
implement main0 () = print "Hello world!\n"

View file

@ -0,0 +1 @@
BEGIN{print "Hello world!"}

View file

@ -0,0 +1,3 @@
END {
print "Hello world!"
}

View file

@ -0,0 +1,4 @@
// {
print "Hello world!"
exit
}

View file

@ -0,0 +1,3 @@
// {
print "Hello world!"
}

View file

@ -0,0 +1 @@
//

View file

@ -0,0 +1,3 @@
Proc Main()
Print("Hello world!")
Return

View file

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

View file

@ -0,0 +1,5 @@
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
begin
Put_Line ("Hello world!");
end Main;

View file

@ -0,0 +1,12 @@
module HelloWorld where
open import Agda.Builtin.IO using (IO)
open import Agda.Builtin.Unit renaming ( to Unit)
open import Agda.Builtin.String using (String)
postulate putStrLn : String -> IO Unit
{-# FOREIGN GHC import qualified Data.Text as T #-}
{-# COMPILE GHC putStrLn = putStrLn . T.unpack #-}
main : IO Unit
main = putStrLn "Hello world!"

View file

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

View file

@ -0,0 +1 @@
o_text("Hello world!\n");

View file

@ -0,0 +1,7 @@
integer
main(void)
{
o_text("Hello world!\n");
return 0;
}

View file

@ -0,0 +1 @@
printf("Hello world!\n");

View file

@ -0,0 +1 @@
Print('Hello world!')

View file

@ -0,0 +1,3 @@
main:
{"Hello world!\n"}print
exit(0)

View file

@ -0,0 +1,3 @@
#include <hopper.h>
main:
exit("Hello world!\n")

View file

@ -0,0 +1,2 @@
main:
{"Hello world!\n"}return

View file

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

View file

@ -0,0 +1,3 @@
PROC main()
WriteF('Hello world!\n')
ENDPROC

View file

@ -0,0 +1 @@
void main() { print("Hello world\n"); }

View file

@ -0,0 +1,3 @@
There was a guy called Hello World
"Ow!" it said.
That's all folks!

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1,2 @@
use std
print "Hello world!"

View file

@ -0,0 +1,3 @@
IT'S SHOWTIME
TALK TO THE HAND "Hello world!"
YOU HAVE BEEN TERMINATED

View file

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

View file

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

View file

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

View file

@ -0,0 +1 @@
write('Hello world!');

View file

@ -0,0 +1,3 @@
DllCall("AllocConsole")
FileAppend, Goodbye`, World!, CONOUT$
FileReadLine, _, CONIN$, 1

View file

@ -0,0 +1,2 @@
DllCall("AttachConsole", "int", -1)
FileAppend, Goodbye`, World!, CONOUT$

View file

@ -0,0 +1 @@
SendInput Hello world!{!}

View file

@ -0,0 +1 @@
ConsoleWrite("Hello world!" & @CRLF)

View file

@ -0,0 +1 @@
(printc "Hello World!")

View file

@ -0,0 +1 @@
Print: "Hello World!";

View file

@ -0,0 +1 @@
Disp "Hello world!",i

View file

@ -0,0 +1,5 @@
main()
{
putstr("Hello world!*n");
return(0);
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1,6 @@
GET "libhdr"
LET start() = VALOF
{ writef("Hello world!")
RESULTIS 0
}

View file

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

View file

@ -0,0 +1 @@
•Out "Hello world!"

View file

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

View file

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

View file

@ -0,0 +1,5 @@
import ballerina/io;
public function main() {
io:println("Hello World!");
}

View file

@ -0,0 +1 @@
echo Hello world!

View file

@ -0,0 +1,2 @@
setlocal enableDelayedExpansion
echo Hello world!^^!

View file

@ -0,0 +1,3 @@
const hello = "Hello world!\n"
print(hello)

View file

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

View file

@ -0,0 +1,10 @@
Using System;
namespace HelloWorld {
class Program
{
static void Main()
{
Console.Writeln("Hello World!");
}
}
}

View file

@ -0,0 +1 @@
*`Hello, World!

View file

@ -0,0 +1,7 @@
>`ld!
`
r
o
W
`
b` ,olleH`_

View file

@ -0,0 +1,7 @@
r l
l o
``
ol`*`,d!
``
e H
W

View file

@ -0,0 +1 @@
52*"!dlroW ,olleH">:#,_@

View file

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

View file

@ -0,0 +1,5 @@
use Console
define Main
Console.Println "Hello world"
end

View file

@ -0,0 +1 @@
echo 'Hello world!'

View file

@ -0,0 +1 @@
print('Hello world!')

View file

@ -0,0 +1,2 @@
import io
io.stdout.write('Hello world!')

View file

@ -0,0 +1,5 @@
# This will display a goodbye message on the terminal screen
.begin
display "Hello world!"
return
# This is the end of the script.

View file

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

View file

@ -0,0 +1,15 @@
global _start
: syscall ( num:eax -- result:eax ) syscall ;
: exit ( status:edi -- noret ) 60 syscall ;
: bye ( -- noret ) 0 exit ;
1 const stdout
: write ( buf:esi len:edx fd:edi -- ) 1 syscall drop ;
: print ( buf len -- ) stdout write ;
: greet ( -- ) s" Hello world!\n" print ;
: _start ( -- noret ) greet bye ;

View file

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

View file

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

View file

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

View file

@ -0,0 +1,4 @@
#!/usr/bin/env bx
use b
Main:
say("Hello world!")

View file

@ -0,0 +1 @@
put$"Hello world!"

View file

@ -0,0 +1,59 @@
+++++ +++++ First cell 10 (its a counter and we will be "multiplying")
[
>+ 10 times 1 is 10
>+++ 10 times 3 is 30
>++++ etc etc
>+++++ ++
>+++++ +++
>+++++ ++++
>+++++ +++++
>+++++ ++++++
>+++++ +++++++
<<<<<<<<< - go back to counter and subtract 1
]
printing G
>>>> + .
o twice
>>>> + ..
d
< .
b
< +++++ +++ .
y
>>> + .
e
<< + .
COMMA
<<<< ++++ .
SPACE
< ++ .
W
>>> +++++ ++ .
o
>>> .
r
+++ .
l
< +++++ ++ .
d
----- --- .
!
<<<<< + .
CRLF
< +++ . --- .

View file

@ -0,0 +1,4 @@
++++++++++[>+>+++>++++>+++++++>++++++++>+++++++++>++
++++++++>+++++++++++>++++++++++++<<<<<<<<<-]>>>>+.>>>
>+..<.<++++++++.>>>+.<<+.<<<<++++.<++.>>>+++++++.>>>.+++.
<+++++++.--------.<<<<<+.<+++.---.

View file

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

View file

@ -0,0 +1 @@
echo Hello world!

Some files were not shown because too many files have changed in this diff Show more