From 5a3f9a31850d6da72dff7211c9760cd4a8e1090b Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 13 Apr 2021 21:11:26 -0700 Subject: . --- html/ex9.mu.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'html/ex9.mu.html') diff --git a/html/ex9.mu.html b/html/ex9.mu.html index f4d8a582..6facf340 100644 --- a/html/ex9.mu.html +++ b/html/ex9.mu.html @@ -73,17 +73,17 @@ if ('onhashchange' in window) { 15 # 6. Notice that the data disk now contains the word count of the original text. 16 # xxd data.img |head 17 -18 fn main { +18 fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) { 19 var text-storage: (stream byte 0x200) 20 var text/esi: (addr stream byte) <- address text-storage -21 load-first-sector-from-primary-bus-secondary-drive text +21 load-sector data-disk, 0/lba, text 22 23 var word-count/eax: int <- word-count text 24 25 var result-storage: (stream byte 0x10) 26 var result/edi: (addr stream byte) <- address result-storage 27 write-int32-decimal result, word-count -28 store-first-sector-to-primary-bus-secondary-drive result +28 store-sector data-disk, 0/lba, result 29 } 30 31 fn word-count in: (addr stream byte) -> _/eax: int { -- cgit 1.4.1-2-gfad0