sudo apt install nasm
sudo apt install qemu-system-x86
nasm -f bin ./boot.asm -o ./boot.bin
ndisasm ./boot.bin
qemu-system-x86_64 -hda ./boot.bin
show all disks in the system
sudo fdisk -l
copy binary to the disk
sudo dd if=./boot.bin of=/dev/sdb
Make a Makefile
sudo apt install bless
bless ./boot_read.bin
sudo apt install gdb
target remote | qemu-system- -hda ./pro.bin -S -gdb stdio
c
type ctrl+C sigint
layout asm
info register
Restructure the project Enable A20 line
$ make //to compile and make an executable
$ cd bin //to switch to binary file and operate on gdb
$ target remote | qemu-system-x86_64 -hda ./boot.bin -S gdb stdio //to run onthe emulator
prompt to continue appears
press c
$ layout asm //to view how values are stored on the memory