~ecs/public-inbox

add unparse branch for halt and blit v1 PROPOSED

Evan Johnston: 1
 add unparse branch for halt and blit

 1 files changed, 10 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~ecs/public-inbox/patches/51652/mbox | git am -3
Learn more about email & git

[PATCH] add unparse branch for halt and blit Export this patch

---
 qbe/unparse.ha | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/qbe/unparse.ha b/qbe/unparse.ha
index e158433..23589b4 100644
--- a/qbe/unparse.ha
+++ b/qbe/unparse.ha
@@ -209,6 +209,16 @@ case let c: call =>
	unparse_call(out, c)?;
case let d: dbgloc =>
	fmt::fprintfln(out, "\tdbgloc {}, {}", d.0, d.1)?;
case let b: blit =>
	fmt::fprint(out, "\tblit ")?;
	unparse_val(out, b.src)?;
	fmt::fprint(out, ", ")?;
	unparse_val(out, b.dst)?;
	fmt::fprint(out, ", ")?;
	unparse_val(out, b.sz)?;
	fmt::fprint(out, "\n")?;
case let b: hlt =>
	fmt::fprintln(out, "\thlt")?;
};

fn unparse_jump(out: io::handle, j: jump) (io::error | void) = match (j) {
-- 
2.44.0