Just another update

This commit is contained in:
Ingy döt Net 2015-02-20 00:35:01 -05:00
parent a25938f123
commit 00a190b0a6
6591 changed files with 94363 additions and 23227 deletions

View file

@ -1,4 +1,6 @@
{{selection|Short Circuit|Console Program Basics}}In this User Output task, the goal is to display the string "Goodbye, World!" [sic] on a text console.
{{selection|Short Circuit|Console Program Basics}}
[[Category:Simple]]
In this User Output task, the goal is to display the string "Goodbye, World!" [sic] on a text console.
'''See also'''
* [[Hello world/Graphical]]

View file

@ -0,0 +1,8 @@
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'Goodbye, World!' Text to be written to system console
END

View file

@ -0,0 +1,3 @@
WTO 'Goodbye, World!'
BR 14 Return
END

View file

@ -1,16 +0,0 @@
{using native SVC (Supervisor Call) to write to system console}
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'Goodbye, World!' Text to be written to system console
END
{using WTO Macro to generate SVC 35 and message area}
WTO 'Goodbye, World!'
BR 14 Return
END

View file

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

View file

@ -1 +1 @@
implement main () = print "Goodbye, World!\n"
implement main0 () = print "Goodbye, World!\n"

View file

@ -1 +1 @@
o_text("GOODBYE, WORLD!\n");
o_text("Goodbye, World!\n");

View file

@ -1,7 +1,7 @@
integer
main(void)
{
o_text("GOODBYE, WORLD!\n");
o_text("Goodbye, World!\n");
return 0;
}

View file

@ -1 +1 @@
main: { "Goodbye, World!" << }
((main { "Goodbye, World!" << }))

View file

@ -1,6 +1,5 @@
#include <iostream>
int main () {
std::cout << "Goodbye, World!" << std::endl;
return std::cout.bad();
std::cout << "Goodbye, World!\n";
}

View file

@ -0,0 +1,7 @@
#include<stdio.h>
int main()
{
printf("\nGoodbye, World!");
return 0;
}

View file

@ -0,0 +1 @@
print "Goodbye, World!"

View file

@ -1,4 +1,4 @@
//compile using the new dylan.NET v, 11.2.8.2 or later
//compile using the new dylan.NET v, 11.5.1.2 or later
//use mono to run the compiler
#refstdasm mscorlib.dll
@ -7,7 +7,7 @@ import System
assembly helloworld exe
ver 1.2.0.0
class public auto ansi Module1
class public Program
method public static void main()
Console::WriteLine("Goodbye, World!")

View file

@ -1,6 +1,5 @@
[[
#config vm_console #start;
#define start ::= "?" system'console .eval&writeLine($literal);
#define start ::= "?" < system'console.eval&writeLine( > $literal < ) >;
]]
? "Hello World"
? "Hello World!!"

View file

@ -0,0 +1 @@
IO.puts "Goodbye, World!"

View file

@ -0,0 +1 @@
printl("Goodbye, World!")

View file

@ -1 +1 @@
print "Goodbye, World!";nl;
say "Goodbye, World!"

View file

@ -0,0 +1,2 @@
show_message("Goodbye, World!"); // displays a pop-up message
show_debug_message("Goodbye, World!"); // sends text to the debug log or IDE

View file

@ -0,0 +1,4 @@
func hello <main>
{
print("Goodbye, World!")
}

View file

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

View file

@ -0,0 +1 @@
'"Goodbye,World!"'

View file

@ -0,0 +1 @@
"'Goodbye,World!'"

View file

@ -1,3 +1,5 @@
package main
func main() { println("Goodbye, World!") }
import "fmt"
func main() { fmt.Println("Goodbye, World!") }

View file

@ -0,0 +1 @@
trace("Goodbye, World!");

View file

@ -0,0 +1,3 @@
main: func {
println("Goodbye, World!")
}

View file

@ -1 +1,3 @@
put ('Goodbye, World!');
goodbye:proc options(main);
put list('Goodbye, World!');
end goodbye;

View file

@ -0,0 +1 @@
STDOUT.write "Goodbye, World!\n"

View file

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

View file

@ -0,0 +1,16 @@
.section ".text"
.global _start
_start:
mov 4,%g1 ! 4 is SYS_write
mov 1,%o0 ! 1 is stdout
set .msg,%o1 ! pointer to buffer
mov (.msgend-.msg),%o2 ! length
ta 8
mov 1,%g1 ! 1 is SYS_exit
clr %o0 ! return status is 0
ta 8
.msg:
.ascii "Goodbye, world!\n"
.msgend:

View file

@ -0,0 +1,4 @@
(import (scheme base)
(scheme write))
(display "Hello, world!")
(newline)

View file

@ -0,0 +1,4 @@
BEGIN
OUTTEXT("Goodbye, World!");
OUTIMAGE
END

View file

@ -0,0 +1 @@
echo "Goodbye, World!\n"