Implemented an assembler
All checks were successful
/ test (push) Successful in 28s

This commit is contained in:
Eduard Urbach 2025-06-24 12:55:26 +02:00
parent 2b703e9af2
commit 70c2da4a4d
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
40 changed files with 821 additions and 117 deletions

12
lib/core/core_linux_arm.q Normal file
View file

@ -0,0 +1,12 @@
init() {
main.main()
exit()
}
exit() {
syscall(93, 0)
}
crash() {
syscall(93, 1)
}

12
lib/core/core_linux_x86.q Normal file
View file

@ -0,0 +1,12 @@
init() {
main.main()
exit()
}
exit() {
syscall(60, 0)
}
crash() {
syscall(60, 1)
}

12
lib/core/core_mac.q Normal file
View file

@ -0,0 +1,12 @@
init() {
main.main()
exit()
}
exit() {
syscall(0x2000001, 0)
}
crash() {
syscall(0x2000001, 1)
}

28
lib/core/core_windows.q Normal file
View file

@ -0,0 +1,28 @@
init() {
// kernel32.SetConsoleCP(cp.utf8)
// kernel32.SetConsoleOutputCP(cp.utf8)
main.main()
exit()
}
exit() {
// kernel32.ExitProcess(0)
}
crash() {
// kernel32.ExitProcess(1)
}
// const {
// cp {
// utf8 65001
// }
// }
// extern {
// kernel32 {
// SetConsoleCP(cp uint)
// SetConsoleOutputCP(cp uint)
// ExitProcess(code uint)
// }
// }