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,15 @@
long fact(in long x) pure nothrow @nogc {
long result = 1;
foreach (immutable i; 2 .. x + 1)
result *= i;
return result;
}
void main() {
// enum means "compile-time constant", it forces CTFE.
enum fact10 = fact(10);
import core.stdc.stdio;
printf("%ld\n", fact10);
}

View file

@ -0,0 +1,11 @@
__Dmain
push EAX
mov EAX,offset FLAT:_DATA
push 0
push 0375F00h
push EAX
call near ptr _printf
add ESP,0Ch
xor EAX,EAX
pop ECX
ret