From 2b61e5e0a02e6c4bd919c842ecf74ff3e089ec73 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 22 Dec 2020 17:01:54 -0800 Subject: 7376 --- apps/boot.hex | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/boot.hex b/apps/boot.hex index ec32103c..3157ce58 100644 --- a/apps/boot.hex +++ b/apps/boot.hex @@ -32,7 +32,8 @@ # to the address range [0x7c00, 0x7e00) # 00: - fa # cli # TODO: don't forget to reenable interrupts in a real program + # disable interrupts for this initialization + fa # cli # initialize segment registers # this isn't always needed, but is considered safe not to assume @@ -147,11 +148,14 @@ e9 fb ff # loop forever 8e c0 # es <- ax 8e e0 # fs <- ax 8e e8 # gs <- ax + + # initialization is done; enable interrupts + fb e9 1d 00 00 00 # jump to 0x7cf0 # padding -# d3: - 00 00 00 00 00 00 00 00 00 00 00 00 00 +# d4: + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ## 'application' SubX code: print one character to top-left of screen -- cgit 1.4.1-2-gfad0