diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-08-22 10:10:54 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-08-22 10:14:37 -0700 |
commit | 66daf3cc1f479300cf3e58278a1167bd862d855a (patch) | |
tree | 323e8936cfc599b1255cb007b410bb35a7ac4a08 /prototypes/browse/12.mu | |
parent | e8ffaf29cea786e1c1266273c65bdb5eb42b39ab (diff) | |
download | mu-66daf3cc1f479300cf3e58278a1167bd862d855a.tar.gz |
6720
Diffstat (limited to 'prototypes/browse/12.mu')
-rw-r--r-- | prototypes/browse/12.mu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/prototypes/browse/12.mu b/prototypes/browse/12.mu index 6b2780ec..1f72c36d 100644 --- a/prototypes/browse/12.mu +++ b/prototypes/browse/12.mu @@ -1,6 +1,6 @@ # Now the trailing asterisk or underscore renders correctly, for starters. -fn main args: (addr array (addr array byte)) -> exit-status/ebx: int { +fn main args: (addr array addr array byte) -> exit-status/ebx: int { var filename/eax: (addr array byte) <- first-arg args var file/esi: (addr buffered-file) <- load-file filename enable-screen-grid-mode @@ -153,8 +153,8 @@ fn clear toprow: int, leftcol: int, botrow: int, rightcol: int { } } -fn first-arg args-on-stack: (addr array (addr array byte)) -> out/eax: (addr array byte) { - var args/eax: (addr array (addr array byte)) <- copy args-on-stack +fn first-arg args-on-stack: (addr array addr array byte) -> out/eax: (addr array byte) { + var args/eax: (addr array addr array byte) <- copy args-on-stack var result/eax: (addr addr array byte) <- index args, 1 out <- copy *result } |