standardized the system of stack effect comments and updated/corrected the existing comments in stdlib and added some that were lacking

This commit is contained in:
IgorCielniak
2026-02-05 21:36:03 +01:00
parent 2d06358e24
commit 5fb36ac9bc
11 changed files with 128 additions and 110 deletions

View File

@@ -2,7 +2,7 @@
# Provides syscall constants and helpers for L2 programs
# swap impl is provided so this can be used without the need for stdlib
# : ___linux_swap ( x1 x2 -- x2 x1 )
#___linux_swap [*, x1 | x2] -> [*, x2 | x1]
:asm ___linux_swap {
mov rax, [r12] ; get top
mov rbx, [r12 + 8] ; get second