blob: 1994257f45716b4faf6815e88c140f1787d6c2f0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
if ($args.Length -gt 0) {
..\tint.exe -flags "$args" -in tnslc.tnsl
mkdir -Force build
mv -Force "$($args[0]).asm" "build/$($args[0]).asm"
nasm -f win64 -o "build/$($args[0]).obj" "build/$($args[0]).asm"
gcc -o "build/$($args[0]).exe" "build/$($args[0]).obj"
} else {
Write-Host "Usage: run [file to compile]";
Write-Host "";
}
|