This commit is contained in:
Kartik Agaram 2020-09-19 21:53:52 -07:00
parent 8e4b4f2013
commit 86a124769d
2 changed files with 2 additions and 2 deletions

View File

@ -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
#

2
400.mu
View File

@ -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)