GC16X is a virtual machine for the Govno Core 16X processor.
-
Compile the source code
The./ball
script compiles all of the programs included in this repo: GC16X, mkfs.govnfs, gboot and GASMAN.
For only compiling GC16X you can use the./build
script. (kasm
assembler will not be built as it is written in python). -
Write assembly code (GovnASM) and compile it to binary
Now you can start writing assembly code. For example, create a file calledtest.asm
:
main:
push $50 ; $ is hex
int 0 ; exit
and compile it with kasm
: ./kasm test.asm test.bin
.
- Running binary on a CGovnOS-GC16X virtual machine
Now, you can run it using./gc16 test.bin
. Congratulations, you wrote & compiled your assembly program for the Govno Core 16X processor and ran it on a GC16X virtual machine.
To compile and run GovnOS on GC16X, type:
./prepare-disk name.img
./gc16 disk name.img