September Morn Update

This commit is contained in:
Ingy döt Net 2019-09-12 10:33:56 -07:00
parent 4e2d22a71d
commit aac6731f2c
6856 changed files with 141342 additions and 21127 deletions

View file

@ -1,3 +1,5 @@
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

View file

@ -2,7 +2,7 @@
; String printing limited to strings of 256 characters or less.
a_cr = $0d ; Carriage return.
bsout = $ffd2 ; C64 KERNAL ROM, output a character to current device.
bsout = $ffd2 ; C64 KERNEL ROM, output a character to current device.
; use $fded for Apple 2
.code

View file

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

View file

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

View file

@ -0,0 +1,3 @@
10 print chr$(147);chr$(14);:REM 147=clear screen, 14=switch to lowercase mode
20 print "Hello world!"
30 end

View file

@ -0,0 +1 @@
5735816763073014741799356604682 P

View file

@ -0,0 +1,4 @@
public program()
{
console.writeLine:"Hello world!"
}

View file

@ -9,3 +9,27 @@ Hello world!
NB. j pretty prints the train.
Hello World!
Hello World !
NB. j is glorious, and you should know this!
i. 2 3 NB. an array of integers
0 1 2
3 4 5
verb_with_infinite_rank =: 'Hello world!'"_
verb_with_infinite_rank i. 2 3
Hello world!
verb_with_atomic_rank =: 'Hello world!'"0
verb_with_atomic_rank i. 2 3
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!

View file

@ -1,5 +1,9 @@
@str = internal constant [14 x i8] c"Hello, world!\00"
declare i32 @puts(i8*)
; const char str[14] = "Hello World!\00"
@.str = private unnamed_addr constant [14 x i8] c"Hello, world!\00"
; declare extern `puts` method
declare i32 @puts(i8*) nounwind
define i32 @main()
{
call i32 @puts( i8* getelementptr ([14 x i8]* @str, i32 0,i32 0))

View file

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

View file

@ -1 +1 @@
"Hello world!" println
"Hello world!" .

View file

@ -0,0 +1,7 @@
#COMPILE EXE
#COMPILER PBCC 6
FUNCTION PBMAIN () AS LONG
CON.PRINT "Hello world!"
CON.WAITKEY$
END FUNCTION

View file

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

View file

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

View file

@ -1 +1 @@
"Hello world!" puts
'Hello_world! s:put

View file

@ -1,3 +1,3 @@
fn main () {
fn main() {
print!("Hello world!");
}

View file

@ -1,3 +1,3 @@
fn main () {
fn main() {
println!("Hello world!");
}

View file

@ -0,0 +1,19 @@
Option Explicit
Private Declare Function AllocConsole Lib "kernel32.dll" () As Long
Private Declare Function FreeConsole Lib "kernel32.dll" () As Long
'needs a reference set to "Microsoft Scripting Runtime" (scrrun.dll)
Sub Main()
Call AllocConsole
Dim mFSO As Scripting.FileSystemObject
Dim mStdIn As Scripting.TextStream
Dim mStdOut As Scripting.TextStream
Set mFSO = New Scripting.FileSystemObject
Set mStdIn = mFSO.GetStandardStream(StdIn)
Set mStdOut = mFSO.GetStandardStream(StdOut)
mStdOut.Write "Hello world!" & vbNewLine
mStdOut.Write "press enter to quit program."
mStdIn.Read 1
Call FreeConsole
End Sub

View file

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