diff options
Diffstat (limited to 'apps/ex9.mu')
-rw-r--r-- | apps/ex9.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/ex9.mu b/apps/ex9.mu index f256e349..30853c69 100644 --- a/apps/ex9.mu +++ b/apps/ex9.mu @@ -18,14 +18,14 @@ fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) { var text-storage: (stream byte 0x200) var text/esi: (addr stream byte) <- address text-storage - read-ata-disk data-disk, 0/lba, 1/num-sectors, text + load-sectors data-disk, 0/lba, 1/num-sectors, text var word-count/eax: int <- word-count text var result-storage: (stream byte 0x10) var result/edi: (addr stream byte) <- address result-storage write-int32-decimal result, word-count - write-ata-disk data-disk, 0/lba, 1/num-sectors, result + store-sectors data-disk, 0/lba, 1/num-sectors, result } fn word-count in: (addr stream byte) -> _/eax: int { |