summary refs log tree commit diff
path: root/quine.asm
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-04-13 17:11:57 -0700
committerIrene Knapp <ireneista@irenes.space>2026-04-13 17:11:57 -0700
commit919ccc9b008750a49977f8867895c3d8ad160cdb (patch)
tree8e07c376421045e89aab06dba10339223009eadc /quine.asm
parentc306bb3a7b3ef4b7e2392fc9dac7480d8f85a4ca (diff)
fix argument order to sub_reg64_reg64
it was backwards compared to sub.qreg.qreg, and the mistake had been missed because frankly that's kind of confusing and most of the invocations of it were themselves backwards, cancelling it out

Force-Push: yes
Change-Id: I54bfa242428fcbe54edc9bc1de8199ec9e821ef7
Diffstat (limited to 'quine.asm')
-rw-r--r--quine.asm7
1 files changed, 3 insertions, 4 deletions
diff --git a/quine.asm b/quine.asm
index 157e87b..78a1c77 100644
--- a/quine.asm
+++ b/quine.asm
@@ -2472,7 +2472,7 @@ cold_start:
   dq std
   dq repnz_scas8
   dq cld
-  dq rbx, rdi, sub_reg64_reg64
+  dq rdi, rbx, sub_reg64_reg64
   dq lit, 1, rbx, sub_reg64_imm8
   dq rbx, push_reg64
   dq pack_next, lit, 8, packalign, early_here_store
@@ -2487,7 +2487,7 @@ cold_start:
   dq std
   dq repz_scas8
   dq cld
-  dq rbx, rdi, sub_reg64_reg64
+  dq rdi, rbx, sub_reg64_reg64
   dq lit, 1, rbx, sub_reg64_imm8
   dq rbx, push_reg64
   dq pack_next, lit, 8, packalign, early_here_store
@@ -5061,7 +5061,6 @@ cold_start:
   dq lit, 0x2B, early_comma
   dq litstring, "pack8", early_find, entry_to_execution_token, early_comma
   dq litstring, "3unroll", early_find, entry_to_execution_token, early_comma
-  dq litstring, "swap", early_find, entry_to_execution_token, early_comma
   dq litstring, "reg64", early_find, entry_to_execution_token, early_comma
   dq litstring, "swap", early_find, entry_to_execution_token, early_comma
   dq litstring, "addressing-reg64", 0, early_find, entry_to_execution_token
@@ -7788,7 +7787,7 @@ defword add_reg64_imm8, 0
 defword sub_reg64_reg64, 0
   dq docol
   dq roll3, rex_w, lit, 0x2B, pack8, unroll3
-  dq swap, reg64, swap, addressing_reg64
+  dq reg64, swap, addressing_reg64
   dq exit
 
 ; Stack: