From 3844651e49258a400ed81273f7cd620a14264386 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 24 Jan 2021 19:38:10 -0800 Subject: 7559 - reorganize sectors built in raw hex This was tedious for three reasons beyond the usual one of having to track and update offsets several time while I debug: - The Bochs troubles of the previous commit kept polluting my brain even though they were irrelevant. - I had to keep some changes locally to allow myself to use Bochs, which polluted my working directory. - I had to travel the long way to the realization that I'm not actually initializing the stack anywhere. BIOS was starting my stack off at 0x10000, which was promptly clobbered by my second read from disk. The good news: while I'm here I grow the interrupt descriptor table. So I don't have to go through this exercise when I get back to supporting the mouse. --- baremetal/ex2.subx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'baremetal/ex2.subx') diff --git a/baremetal/ex2.subx b/baremetal/ex2.subx index b1f42114..57806e34 100644 --- a/baremetal/ex2.subx +++ b/baremetal/ex2.subx @@ -14,7 +14,7 @@ main: # ecx <- start of video memory - 8b/-> *0x7e28 1/r32/ecx + 8b/-> *0x7f28 1/r32/ecx # eax <- final pixel of video memory 8d/copy-address *(ecx + 0x0bffff) 0/r32/eax # 0xbffff = 1024*768 - 1 -- cgit 1.4.1-2-gfad0 c5'>blame commit diff stats
path: root/HACKING
blob: 3d35190e8461e8592a4e0b9f96cf100ccfa48755 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12