diff --git a/.gitignore b/.gitignore index 1f52d1c..0306fad 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,4 @@ spec.md default.nix -lbr - -std/ \ No newline at end of file +lbr \ No newline at end of file diff --git a/std/print.lb b/std/print.lb new file mode 100644 index 0000000..f05f56e --- /dev/null +++ b/std/print.lb @@ -0,0 +1,11 @@ +; Copyright (C) 2024 Bedohswe +; Licensed under WTFPL + +@ 0 + args 1 + kjz 1 + putc + jmp 0 + +@ 1 + quit \ No newline at end of file diff --git a/std/rev.lb b/std/rev.lb new file mode 100644 index 0000000..5a0a93a --- /dev/null +++ b/std/rev.lb @@ -0,0 +1,4 @@ +; Copyright (C) 2024 Aer Iz +; Licensed under WTFPL + +args 0 \ No newline at end of file diff --git a/std/rot.lb b/std/rot.lb new file mode 100644 index 0000000..634801f --- /dev/null +++ b/std/rot.lb @@ -0,0 +1,4 @@ +; Copyright (C) 2024 Aer Iz +; Licensed under WTFPL + +args 3 \ No newline at end of file diff --git a/std/unix/варёныйносок.lb b/std/unix/варёныйносок.lb new file mode 100644 index 0000000..0ac3af4 --- /dev/null +++ b/std/unix/варёныйносок.lb @@ -0,0 +1,17 @@ +; Copyright (C) 2024 Aer Iz +; Licensed under WTFPL + +maxsize +args 1 ; Насколько сварить носок +sub + +@ 1 + kjnz 2 + quit + +@ 2 + #expr - + push -1 + _unix_random + swap + jmp 1 \ No newline at end of file