diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -14,7 +14,7 @@ ndisasm -b16 -o7c00h -a image.bin | less objdump -M intel -d kernel.o | less gcc -m32 -ffreestanding -c -o kernel.o kernel.c -ld -o kernel.bin -Ttext 0x8000 kernel.o -m elf_i386 --oformat binary +ld -o kernel.bin -Ttext 0x8400 kernel.o -m elf_i386 --oformat binary objdump -M intel -d kernel.bin | less # oformat: objdump -i lists tons of formats @@ -37,6 +37,13 @@ Booting from 0000:7c00 Next at t=14040244 (0) [0x000000007c00] 0000:7c00 (unk. ctxt): mov ax, 0x0000 ; b80000 +C entry: +break 0x8400 + +disassemble kernel in 32-bit mode +ndisasm -b32 -o8400h -a kernel.bin | less + + links ----- |