about summary refs log tree commit diff stats
path: root/079emit.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-03-06 12:08:42 -0800
committerKartik Agaram <vc@akkartik.com>2020-03-06 12:08:42 -0800
commitc1737cbaae4e0712beff129094aa73d51204f9a7 (patch)
tree12cf0e1f022a211f594a52354d6516f617a48f19 /079emit.subx
parent4032286f9bb231139b733e5444b862006d3b9119 (diff)
downloadmu-c1737cbaae4e0712beff129094aa73d51204f9a7.tar.gz
6083
Diffstat (limited to '079emit.subx')
-rw-r--r--079emit.subx6
1 files changed, 3 insertions, 3 deletions
diff --git a/079emit.subx b/079emit.subx
index cf80f347..154b1bea 100644
--- a/079emit.subx
+++ b/079emit.subx
@@ -61,18 +61,18 @@ $emit:name:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # . return
     eb/jump  $emit:end/disp8
-    # otherwise emit-hex(out, parse-hex-int(datum), width)
+    # otherwise emit-hex(out, parse-hex-int-from-slice(datum), width)
     #   (Weird shit can happen here if the datum of 'word' isn't either a valid
     #   name or a hex number. `emit` is mostly used by translate_subx, which
     #   is currently designed to only receive legal SubX programs. We just
     #   want to make sure that valid names aren't treated as (valid) hex
     #   numbers.)
 $emit:hex-int:
-    # . var value/eax: int = parse-hex-int(datum)
+    # . var value/eax: int = parse-hex-int-from-slice(datum)
     # . . push args
     57/push-edi
     # . . call
-    e8/call  parse-hex-int/disp32
+    e8/call  parse-hex-int-from-slice/disp32
     # . . discard args
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               4/imm32           # add to esp
     # . emit-hex(out, value, width)