Bug fix: 0x2a is not ROR but ROL

This commit is contained in:
Takashi Toyoshima 2014-12-08 03:19:08 +09:00
parent 7dcce64f10
commit 4994158c0c
2 changed files with 3 additions and 3 deletions

4
6502.S
View File

@ -965,9 +965,9 @@ op29: // AND - Immediate
_lop ands
_decode
op2a: // ROR - Accumulator
op2a: // ROL - Accumulator
_fromReg RA
_ror
_rol
_toReg RA
_decode

View File

@ -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