From 2c79240cc66dd2a116056662def9bdc165b2b3e7 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 14 May 2017 11:06:13 +0200 Subject: playing with addresses and seing the CRT index port number now in port8_read --- README | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'README') diff --git a/README b/README index 0d29dbd..c92d044 100644 --- a/README +++ b/README @@ -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 ----- -- cgit v1.2.3-54-g00ecf