Fix incorrect function parameters in jmp instruction
authorbylex <mbilek06@gmail.com>
Thu, 10 Oct 2024 13:40:50 +0000 (15:40 +0200)
committerbylex <mbilek06@gmail.com>
Thu, 10 Oct 2024 13:40:50 +0000 (15:40 +0200)
opcodes.h

index 49e08fbc742cf3a4a8afd5d5df4e671cc75e594a..dd4e2d434dcae2bd89016da724e67db5dc4b509c 100644 (file)
--- 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;