diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-01-24 19:38:10 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-01-24 20:16:27 -0800 |
commit | 3844651e49258a400ed81273f7cd620a14264386 (patch) | |
tree | ec050e286314f49945dd0b3f97e4aa839b1a67f5 /baremetal/ex2.subx | |
parent | 1c77be68d75d8134bea72305057eb9ce523e9748 (diff) | |
download | mu-3844651e49258a400ed81273f7cd620a14264386.tar.gz |
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.
Diffstat (limited to 'baremetal/ex2.subx')
-rw-r--r-- | baremetal/ex2.subx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |