CGovnOS 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: CGovnOS-GC16X, mkfs.govnfs, gboot and GASMAN.
For only compiling CGovnOS-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 50h
int 00h
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 compiled GovnASM assembly for the Govno Core 16X processor and ran it on a CGovnOS-GC16X virtual machine.
To compile and run GovnOS on GC16X, type:
newdisk name.img
rom-load-govnos name.img
run-govnos name.img