Skip to content

Commit

Permalink
Fixed addressing error for TSB/TSR and enabled tests again.
Browse files Browse the repository at this point in the history
  • Loading branch information
IrgendwerA8 committed Mar 20, 2017
1 parent 5095dd7 commit cc82cd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/sim65/6502.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ static void OPC_65SC02_0C (void)
unsigned Addr;
unsigned char Val;
Cycles = 6;
Addr = MemReadByte (Regs.PC+1);
Addr = MemReadWord (Regs.PC+1);
Val = MemReadByte (Addr);
SET_ZF ((Val & Regs.AC) == 0);
MemWriteByte (Addr, (unsigned char) (Val | Regs.AC));
Expand Down Expand Up @@ -604,7 +604,7 @@ static void OPC_65SC02_1C (void)
unsigned Addr;
unsigned char Val;
Cycles = 6;
Addr = MemReadByte (Regs.PC+1);
Addr = MemReadWord (Regs.PC+1);
Val = MemReadByte (Addr);
SET_ZF ((Val & Regs.AC) == 0);
MemWriteByte (Addr, (unsigned char) (Val & ~Regs.AC));
Expand Down
7 changes: 0 additions & 7 deletions test/val/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ SOURCES := $(wildcard *.c)
TESTS := $(foreach option,$(OPTIONS),$(SOURCES:%.c=$(WORKDIR)/%.$(option).6502.prg))
TESTS += $(foreach option,$(OPTIONS),$(SOURCES:%.c=$(WORKDIR)/%.$(option).65c02.prg))

# FIXME: These tests fail when built with optimizations for the 65c02
TESTS := $(filter-out $(WORKDIR)/compare7.O%.65c02.prg,$(TESTS))
TESTS := $(filter-out $(WORKDIR)/compare8.O%.65c02.prg,$(TESTS))
TESTS := $(filter-out $(WORKDIR)/compare9.O%.65c02.prg,$(TESTS))
TESTS := $(filter-out $(WORKDIR)/compare10.O%.65c02.prg,$(TESTS))
TESTS := $(filter-out $(WORKDIR)/or1.O%.65c02.prg,$(TESTS))

all: $(TESTS)

$(WORKDIR):
Expand Down

0 comments on commit cc82cd9

Please sign in to comment.