From 5fc2871f2ced6ac718685bad4729994441d6c832 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sat, 11 Oct 2025 19:59:16 -0700 Subject: generalized mov.qreg.qreg Force-Push: yes Change-Id: I668a2738ac19e98dd30c58964ba4c6706613ea7d --- quine.asm | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/quine.asm b/quine.asm index b7904da..abc709b 100644 --- a/quine.asm +++ b/quine.asm @@ -110,17 +110,11 @@ end macro macro mov.qreg.qreg target, source - match =rsi, target - match =rsp, source - rex.w - db 0x89 - modrm 3, 4, 6 - else - assert 0 - end match - else - assert 0 - end match + qwordreg treg, target + qwordreg sreg, source + rex.w + db 0x89 + modrm 3, sreg, treg end macro @@ -404,7 +398,6 @@ _start: ;;; mov.rel.q rsp, 0x60, rdx ; size in file mov.rel.q rsp, 0x68, rdx ; size in memory - ; TODO it works for rax source but not yet for rdx ;;; ;;; The buffer is ready; output the file. -- cgit 1.4.1