From 5396e24cba8390ca2d70d99c7e8772eee4ec3a11 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 18 May 2021 13:01:59 -0700 Subject: . --- html/mu-init.subx.html | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) (limited to 'html/mu-init.subx.html') diff --git a/html/mu-init.subx.html b/html/mu-init.subx.html index 8aa49531..e36e8a54 100644 --- a/html/mu-init.subx.html +++ b/html/mu-init.subx.html @@ -68,30 +68,25 @@ if ('onhashchange' in window) { 12 Entry: 13 # initialize stack 14 bd/copy-to-ebp 0/imm32 -15 # Clear memory location 0 to ensure that uninitialized arrays run afoul of -16 # the bounds checker. -17 # TODO: This is utterly bonkers, and does not actually protect us against -18 # all null pointer reads/writes. Create a real page table sometime. -19 b8/copy-to-eax 0/imm32 -20 c7 0/subop/copy *eax 0/imm32 -21 #? (main 0 0 Primary-bus-secondary-drive) -22 # always first run tests -23 (run-tests) -24 (num-test-failures) # => eax -25 # call main if tests all passed -26 { -27 3d/compare-eax-and 0/imm32 -28 75/jump-if-!= break/disp8 -29 (clear-real-screen) -30 c7 0/subop/copy *Real-screen-cursor-x 0/imm32 -31 c7 0/subop/copy *Real-screen-cursor-y 0/imm32 -32 (main 0 0 Primary-bus-secondary-drive) +15 # +16 #? (main 0 0 Primary-bus-secondary-drive) +17 # always first run tests +18 (run-tests) +19 (num-test-failures) # => eax +20 # call main if tests all passed +21 { +22 3d/compare-eax-and 0/imm32 +23 75/jump-if-!= break/disp8 +24 (clear-real-screen) +25 c7 0/subop/copy *Real-screen-cursor-x 0/imm32 +26 c7 0/subop/copy *Real-screen-cursor-y 0/imm32 +27 (main 0 0 Primary-bus-secondary-drive) +28 } +29 +30 # hang indefinitely +31 { +32 eb/jump loop/disp8 33 } -34 -35 # hang indefinitely -36 { -37 eb/jump loop/disp8 -38 } -- cgit 1.4.1-2-gfad0