Implemented extern functions

This commit is contained in:
Eduard Urbach 2025-02-12 00:04:30 +01:00
parent 38b573085e
commit 4803b81845
Signed by: eduard
GPG key ID: 49226B848C78F6C8
24 changed files with 304 additions and 169 deletions

View file

@ -1,3 +1,8 @@
extern kernel32 {
VirtualAlloc(address Int, length Int, flags Int, protection Int)
VirtualFree(address *Any, length Int, type Int) -> Bool
}
mmap(address Int, length Int, protection Int, flags Int) -> *Any {
return kernel32.VirtualAlloc(address, length, flags, protection)
}