diff options
-rw-r--r-- | quine.asm | 17 |
1 files 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. |