summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-05-14 11:06:13 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-05-14 11:06:13 +0200
commit2c79240cc66dd2a116056662def9bdc165b2b3e7 (patch)
treeda262ee59e3e1bf74538a64b97c7965f85649f76 /README
parentbc9530b1b439752fdf340f8d13ded049f678660e (diff)
downloadabaos-2c79240cc66dd2a116056662def9bdc165b2b3e7.tar.gz
abaos-2c79240cc66dd2a116056662def9bdc165b2b3e7.tar.bz2
playing with addresses and seing the CRT index port number now in port8_read
Diffstat (limited to 'README')
-rw-r--r--README9
1 files changed, 8 insertions, 1 deletions
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
-----