ubuntu hariboteos - Forest0923/memo GitHub Wiki
Binary editor
sudo apt install hexedit
sudo apt install ghex
Assembler
nasm input.asm -o output (-l output.lst)
C compiler
gcc -march=i486 -m32 -fno-pie -nostdlib -T [linkerfile] -g *.c *.o -o bootpack.bin
Make OS image
- Merge asmhead.bin and bootpack.bin:
cat asmhead.bin bootpack.bin > os.sys
mformat -f 1440 -C -B ipl.bin -i os.img ::
mcopy -i os.img os.sys ::
Option |
Meaning |
-f |
Filesize |
-C |
Create MS-MOS file system |
-B |
Boot sector |
Emulator
- qemu (or VirtualBox)
- Installation:
sudo apt install qemu
qemu-system-i386 -fda os.img
- Option "-fda" means use of floppy disk