X-Git-Url: http://git.joshuawise.com/snipe.git/blobdiff_plain/5c79bb689ab446551bc7ec4497e6c9b75582837e..c148fe943397f2ec0ea1f9b6784a217213ff54c1:/codegen/stringifier.sml diff --git a/codegen/stringifier.sml b/codegen/stringifier.sml index 7ab1e89..b01beba 100644 --- a/codegen/stringifier.sml +++ b/codegen/stringifier.sml @@ -6,19 +6,19 @@ signature STRINGIFY = sig - type asm = x86.insn list + type asm = Blarg.insn list val stringify : (string -> string) -> asm -> string end structure Stringify :> STRINGIFY = struct - type asm = x86.insn list - structure X = x86 + type asm = Blarg.insn list + structure X = Blarg (* val stringify : asm -> string * turns a x86 instruction list into a string of assembly code for these instructions *) - fun stringify' rn (X.CALL (l, n)) = X.print (X.CALL ((Symbol.symbol (rn (Symbol.name l))), n)) + fun stringify' rn (X.INSN (pred, X.MOVSYM (r, n))) = X.print (X.INSN (pred, X.MOVSYM (r, (Symbol.symbol (rn (Symbol.name n)))))) | stringify' rn x = X.print x (* val stringify : asm -> string *)