Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ziplantil committed Oct 30, 2022
1 parent 5fffb87 commit cb997a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/w65c02s.h
Original file line number Diff line number Diff line change
Expand Up @@ -1946,7 +1946,7 @@ static unsigned w65c02s_mode_relative_bit(W65C02S_PARAMS_MODE) {
/* skip one read cycle if no page boundary crossed */
if (W65C02S_GET_HI(cpu->pc = W65C02S_TR.new_pc)
== W65C02S_GET_HI(W65C02S_TR.old_pc))
W65C02S_SKIP_TO_NEXT(3);
W65C02S_SKIP_TO_NEXT(6);
W65C02S_READ(W65C02S_TR.old_pc);
w65c02s_irq_latch_slow(cpu);
W65C02S_CYCLE(6)
Expand Down Expand Up @@ -2062,7 +2062,7 @@ static unsigned w65c02s_mode_rmw_absolute_x(W65C02S_PARAMS_MODE) {
W65C02S_TR.ea += cpu->x;
/* if not INC and DEC and we did not cross a page, skip cycle. */
if (!penalty) W65C02S_SKIP_TO_NEXT(4);
W65C02S_READ(cpu->pc - 1);
W65C02S_READ(W65C02S_TR.ea);
}
W65C02S_CYCLE(4)
W65C02S_TR.data = W65C02S_READ(W65C02S_TR.ea);
Expand Down
8 changes: 4 additions & 4 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ all: $(PROGS)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) $(CEFLAGS) -I$(LIBPATH) -c -o $@ $<

monitor: $(LIBFILES) monitor.o
monitor: $(LIBFILES) monitor.o $(HEADERS)
$(LD) -o $@ $^ $(LFLAGS)

busdump: $(LIBFILES) busdump.o
busdump: $(LIBFILES) busdump.o $(HEADERS)
$(LD) -o $@ $^ $(LFLAGS)

benchmark: $(LIBFILES) benchmark.o
benchmark: $(LIBFILES) benchmark.o $(HEADERS)
$(LD) -o $@ $^ $(LFLAGS)

breaktest: $(LIBFILES) breaktest.o
breaktest: $(LIBFILES) breaktest.o $(HEADERS)
$(LD) -o $@ $^ $(LFLAGS)

clean:
Expand Down

0 comments on commit cb997a9

Please sign in to comment.