nooc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/nooc
Log | Files | Refs | LICENSE

commit f1ed7f827e39132f6ee67d9c16b92af2a0193a6b
parent ed2af9df22b86d96d8299c08c9074871d1582867
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Sat, 27 Nov 2021 23:28:30 -0600

subtract operands in correct order

previously they were backwards, so we just switch to the encoding
with the operands flipped

Diffstat:
Mx64.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x64.c b/x64.c @@ -107,7 +107,7 @@ add_r64_r64(char *buf, enum reg reg1, enum reg reg2) size_t sub_r64_r64(char *buf, enum reg reg1, enum reg reg2) { - uint8_t mov[] = {0x48, 0x29}; + uint8_t mov[] = {0x48, 0x2B}; uint8_t op = (MOD_DIRECT << 6) | (reg1 << 3) | reg2; if (buf) { memcpy(buf, mov, 2);