summary refs log tree commit diff
path: root/pc-thing/the_e_programming_language/test.e.txt
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2025-04-02 12:23:56 +0300
committerWlodekM <[email protected]>2025-04-02 12:23:56 +0300
commit1027b91f357eaaa4793b9d16673b0ab662b37c7e (patch)
tree8625f0aebc48ab32d6d4c3bd5ae92cfbf82c8c08 /pc-thing/the_e_programming_language/test.e.txt
parent0f6d349f9b8d22b3f8d972c5ff19ffb276629bdb (diff)
remove pc thing
Diffstat (limited to 'pc-thing/the_e_programming_language/test.e.txt')
-rwxr-xr-xpc-thing/the_e_programming_language/test.e.txt43
1 files changed, 0 insertions, 43 deletions
diff --git a/pc-thing/the_e_programming_language/test.e.txt b/pc-thing/the_e_programming_language/test.e.txt
deleted file mode 100755
index c8d09c5..0000000
--- a/pc-thing/the_e_programming_language/test.e.txt
+++ /dev/null
@@ -1,43 +0,0 @@
-// comments exist
-// 
-// types (in addresses (they store 2 bytes if you forgot)):
-// int - 1
-// char - 1
-// bool - 1
-// uuh yeah,, theyre all 1 address ;-;
-//
-// $VARNAME is the address of the var, when used in mov it means that we get that var
-// [$VARNAME] is the address of the var, but when it's used in mov it means we set to the address
-
-// translates to:
-// mov a 0
-// mov $counter a
-// prob not gonna make it do assembly tho
-int counter = 0
-int[4] buff = 0
-
-fn _start {
-    // translates to
-    // <inner code>
-    // mov a $counter
-    // mov b 4
-    // cmp a b
-    // jz $start_of_inner_code
-    while (counter < 4) {
-        // translates to
-        // mov a [$buff]
-        // mov b [$counter]
-        // add a a b
-        // mov b $counter
-        // str a b
-        buff[counter] = counter
-        // translates to
-        // mov a $counter ; further translates to:
-        //                ; mov a $counter
-        //                ; ld a a
-        // mov b 1
-        // add a a b
-        // str $counter a
-        counter = counter + 1
-    }
-}
\ No newline at end of file