kstenerud / Musashi

Motorola 680x0 emulator written in C
412 stars 94 forks source link

% instead of & in the write byte define in the example application. #1

Open fifteenhex opened 10 years ago

fifteenhex commented 10 years ago

I noticed this ages ago but I only just noticed that you had pushed musashi to github. There is an issue with the example application:

example/sim.c:37

define WRITE_BYTE(BASE, ADDR, VAL) (BASE)[ADDR] = (VAL)%0xff

I presume that % is meant to be an &. This causes some really weird and hard to debug issues. :)

kstenerud commented 10 years ago

Doh! Fixed.