diff options
-rw-r--r-- | 126write-int-decimal.subx | 2 | ||||
-rw-r--r-- | 400.mu | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/126write-int-decimal.subx b/126write-int-decimal.subx index 4c0194e9..f85d1e5c 100644 --- a/126write-int-decimal.subx +++ b/126write-int-decimal.subx @@ -5,7 +5,7 @@ # . op subop mod rm32 base index scale r32 # . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes -write-int32-decimal: # out: (addr stream byte), n: int32 +write-int32-decimal: # out: (addr stream byte), n: int # works by generating characters from lowest to highest and pushing them # to the stack, before popping them one by one into the stream # diff --git a/400.mu b/400.mu index db32cdc9..dbb16f2e 100644 --- a/400.mu +++ b/400.mu @@ -107,7 +107,7 @@ sig skip-string line: (addr stream byte) sig skip-until-close-paren line: (addr stream byte) #sig skip-until-close-paren-in-slice curr: (addr byte), end: (addr byte) -> curr/eax: (addr byte) sig write-stream-data f: (addr buffered-file), s: (addr stream byte) -sig write-int32-decimal out: (addr stream byte), n: int32 +sig write-int32-decimal out: (addr stream byte), n: int sig is-decimal-digit? c: byte -> result/eax: boolean sig to-decimal-digit in: byte -> out/eax: int sig next-word line: (addr stream byte), out: (addr slice) |