From 4994158c0c117ca439018188fe7b93824b7a927b Mon Sep 17 00:00:00 2001 From: Takashi Toyoshima Date: Mon, 8 Dec 2014 03:19:08 +0900 Subject: [PATCH] Bug fix: 0x2a is not ROR but ROL --- 6502.S | 4 ++-- Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/6502.S b/6502.S index d974f36..bedb144 100644 --- a/6502.S +++ b/6502.S @@ -965,9 +965,9 @@ op29: // AND - Immediate _lop ands _decode -op2a: // ROR - Accumulator +op2a: // ROL - Accumulator _fromReg RA - _ror + _rol _toReg RA _decode diff --git a/Makefile b/Makefile index 676ccdc..de5df64 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ test: 6502.S test.c # Test binary that runs on qemu user mode emulation for functional tests ftest: 6502.S ftest.c $(CC) -mthumb -static $(FRAMEPTR) ftest.c 6502.S -o ftest && \ - qemu-arm ftest + qemu-arm ftest 2> flog # Assume a CQ Mary comaptible board. run: $(APP).bin