From 7cc02ae42a328ea01e34e0c42c43c3e369b3c854 Mon Sep 17 00:00:00 2001 From: bylex Date: Thu, 10 Oct 2024 15:40:50 +0200 Subject: [PATCH] Fix incorrect function parameters in jmp instruction --- opcodes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opcodes.h b/opcodes.h index 49e08fb..dd4e2d4 100644 --- a/opcodes.h +++ b/opcodes.h @@ -104,7 +104,7 @@ void swp(uint8_t reg, uint8_t addr_1, uint8_t addr_2) -void jmp(uint8_t addr_1, uint8_t addr_2, uint8_t unused_1) +void jmp(uint8_t unused_1, uint8_t addr_1, uint8_t addr_2) { uint16_t addr = (uint16_t)addr_1 << 8 | addr_2; current_instruction = addr; -- 2.25.1