From 5c0b571af70667fbd9a43a0f86c43de6d2188c56 Mon Sep 17 00:00:00 2001 From: Cyneprepou4uk Date: Mon, 14 Feb 2022 21:41:58 +0300 Subject: [PATCH] Update asm.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit забыл ; --- src/asm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asm.cpp b/src/asm.cpp index 757d6e59..fcddcbf4 100644 --- a/src/asm.cpp +++ b/src/asm.cpp @@ -717,12 +717,12 @@ char *bzk_Disassemble(int addr, uint8 *opcode) { //return from subroutine case 0x60: //RTS - tmp = GetMem(((X.S) + 1)|0x0100) + (GetMem(((X.S) + 2)|0x0100) << 8) + 0x01 + tmp = GetMem(((X.S) + 1)|0x0100) + (GetMem(((X.S) + 2)|0x0100) << 8) + 0x01; sprintf(str, "%u|%u", bzk_GetNesFileAddress(tmp), bzk_getBank(tmp)); //return from interrupt case 0x40: //RTI - tmp = GetMem(((X.S) + 2)|0x0100) + (GetMem(((X.S) + 3)|0x0100) << 8) + tmp = GetMem(((X.S) + 2)|0x0100) + (GetMem(((X.S) + 3)|0x0100) << 8); sprintf(str, "%u|%u", bzk_GetNesFileAddress(tmp), bzk_getBank(tmp)); //for all other other opcodes, which are immediate and 1-byte instructions