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,6 @@
---
category:
- Initialization
- Simple
from: http://rosettacode.org/wiki/Empty_program
note: Basic language learning

View file

@ -0,0 +1,4 @@
;Task:
Create the simplest possible program that is still considered "correct."
<br><br>

View file

@ -0,0 +1,2 @@
BR 14
END

View file

@ -0,0 +1,3 @@
org $0801 ;start assembling at this address
db $0E,$08,$0A,$00,$9E,$20,$28,$32,$30,$36,$34,$29,$00,$00,$00 ;required init code
rts ;return to basic

View file

@ -0,0 +1,15 @@
.org $8000 ;usually $8000 but it depends on the mapper.
RESET: ;execution starts here
JMP RESET
NMI: ;NMI can't happen if the screen is off. No need for RTI
IRQ: ;this will never occur without a CLI command.
.org $FFFA
;all 6502 based hardware uses this section of memory to hold the addresses of interrupt routines
;as well as the entry point.
dw NMI ;FFFA-FFFB
dw RESET ;FFFC-FFFD ;this has to be defined or else the program counter will jump to an unknown location
dw IRQ ;FFFE-FFFF

View file

@ -0,0 +1,3 @@
forever:
MOVE.B D0,$300001
JMP forever

View file

@ -0,0 +1,2 @@
ORG RESET
jmp $

View file

@ -0,0 +1,6 @@
main segment
start:
jmp start ;2 bytes
padding byte 508 dup (90h)
bootcode byte 55h,0AAh
main ends

View file

@ -0,0 +1,7 @@
.model small ;.exe file
.stack 1024 ;this value doesn't matter, I chose this arbitrarily
.data
;not needed in an empty program
.code
mov ax,4C00h
int 21h ;exit this program and return to MS-DOS

View file

@ -0,0 +1 @@
end

View file

@ -0,0 +1,8 @@
segment .text
global _start
_start:
mov eax, 60
xor edi, edi
syscall
end

View file

@ -0,0 +1,7 @@
.text
.global _start
_start:
mov x0, #0
mov x8, #93
svc #0

View file

@ -0,0 +1 @@
report z_empty_program.

View file

@ -0,0 +1 @@
'BEGIN' 'END'

View file

@ -0,0 +1 @@
~

View file

@ -0,0 +1 @@
SKIP

View file

@ -0,0 +1 @@
.

View file

@ -0,0 +1,6 @@
.text
.global _start
_start:
mov r0, #0
mov r7, #1
svc #0

View file

@ -0,0 +1,2 @@
ProgramStart:
b ProgramStart ;don't do this on a real game boy, you'll drain the batteries faster than usual.

View file

@ -0,0 +1 @@
1

View file

@ -0,0 +1 @@
// {print}

View file

@ -0,0 +1,4 @@
procedure Empty is
begin
null;
end;

View file

@ -0,0 +1,2 @@
PROC main()
ENDPROC

View file

@ -0,0 +1 @@
return

View file

@ -0,0 +1,2 @@
IT'S SHOWTIME
YOU HAVE BEEN TERMINATED

View file

@ -0,0 +1 @@
#Persistent

View file

@ -0,0 +1 @@
;nothing

View file

@ -0,0 +1,2 @@
Module "a"
Body

View file

@ -0,0 +1 @@
Module"a"Body

View file

@ -0,0 +1 @@
Module"a"Uses"Avail"Body Print:"!";

View file

@ -0,0 +1,4 @@
Module "a"
Uses "Avail"
Body
Print:"!";

View file

@ -0,0 +1,2 @@
:.PRGMNAME
:

View file

@ -0,0 +1 @@
RUN

View file

@ -0,0 +1 @@

View file

@ -0,0 +1 @@
:

View file

@ -0,0 +1,7 @@
using System;
class Program
{
public static void Main()
{
}
}

View file

@ -0,0 +1 @@
*

View file

@ -0,0 +1 @@
\

View file

@ -0,0 +1 @@
_

View file

@ -0,0 +1 @@
/

View file

@ -0,0 +1,2 @@
touch empty
bracmat 'get$empty'

View file

@ -0,0 +1,2 @@
touch empty
bracmat get$empty

View file

@ -0,0 +1 @@
bracmat ''

View file

@ -0,0 +1 @@
bracmat ""

View file

@ -0,0 +1 @@
opendb empty.g y

View file

@ -0,0 +1 @@
int main(){}

View file

@ -0,0 +1,4 @@
main()
{
return 0;
}

View file

@ -0,0 +1 @@
int main() { }

View file

@ -0,0 +1 @@
const main = 195;

View file

@ -0,0 +1,2 @@
start_up = proc ()
end start_up

View file

@ -0,0 +1,3 @@
module Empty
Start world = world

View file

@ -0,0 +1 @@
()

View file

@ -0,0 +1 @@
.

View file

@ -0,0 +1,2 @@
MODULE Main;
END Main.

View file

@ -0,0 +1 @@
STP

View file

@ -0,0 +1 @@
void main() {}

View file

@ -0,0 +1 @@
main() {}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
null

View file

@ -0,0 +1,7 @@
class EmptyApp : Application
{
void Main()
{
}
}

View file

@ -0,0 +1,4 @@
T64K [ set load point ]
GK [ set base address ]
ZF [ stop ]
EZPF [ begin at load point ]

View file

@ -0,0 +1,6 @@
package programs;
program Empty_program type BasicProgram {}
function main()
end
end

View file

@ -0,0 +1,3 @@
PROGRAM EMPTY
BEGIN
END PROGRAM

View file

@ -0,0 +1,6 @@
CREATE COMPUTE MODULE ESQL_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
RETURN TRUE;
END;
END MODULE;

View file

@ -0,0 +1,4 @@
module EmptyProgram {
void run() {
}
}

View file

@ -0,0 +1,12 @@
class
ROOT
create
make
feature
make
do
end
end

View file

@ -0,0 +1,3 @@
public program()
{
}

View file

@ -0,0 +1,4 @@
--Language prints the text in " "
import Html
main =
Html.text"empty"

View file

@ -0,0 +1 @@
-module(empty).

View file

@ -0,0 +1 @@
main(_) -> 1.

View file

@ -0,0 +1,2 @@
[<EntryPoint>]
let main args = 0

View file

@ -0,0 +1,3 @@
IN: rosetta.empty
: main ( -- ) ;
MAIN: main

View file

@ -0,0 +1,4 @@
class Main
{
public static Void main () {}
}

View file

@ -0,0 +1 @@
;

View file

@ -0,0 +1 @@
;

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