phi.Hello:Bootloader
{
str hello: 'Hello, World!\r\n';
str newline: '\r\n';
str name:[40];
log 'What is your name: ';
ask name;
log newline;
log 'hello: ' name;
log newline;
log 'Press any key to continue...';
call Bootloader.WaitForKeyPress;
call Bootloader.JumpToSectorTwo;
}
phi.SectorTwo:OS
{
str Greetings: 'Welcome to PHI language!';
log '\r\n' Greetings;
}
1. Install NASM (Netwide Assembler) (can also use FASM Flat Assembler)
2. Install QEMU (qemu-system-x86_64)
3. Run the ConvertFile program
4. Specify the file (hello.phi)
5. After it runs it will produce a phi.ASM file
6. cd into the folder
7. & [insert path]\buildSingleASM.bat phi
1. Direct access to ASM
2. Optional memory safety
3. Syntax Efficiency
4. Compile to ASM and then to Binary
5. Compatibility with C