summaryrefslogtreecommitdiff
path: root/py/asmx64.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/asmx64.c')
-rw-r--r--py/asmx64.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/asmx64.c b/py/asmx64.c
index 4fbd44f98..c7e3cdc84 100644
--- a/py/asmx64.c
+++ b/py/asmx64.c
@@ -441,6 +441,9 @@ void asm_x64_cmp_i32_with_r32(asm_x64_t* as, int src_i32, int src_r32) {
}
void asm_x64_test_r8_with_r8(asm_x64_t* as, int src_r64_a, int src_r64_b) {
+ // TODO implement for other registers
+ assert(src_r64_a == REG_RAX);
+ assert(src_r64_b == REG_RAX);
asm_x64_write_byte_2(as, OPCODE_TEST_R8_WITH_RM8, MODRM_R64(src_r64_a) | MODRM_RM_REG | MODRM_RM_R64(src_r64_b));
}