Wed, 16 Apr 2014 02:20:43 -0600

Wed, 16 Apr 2014 02:20:43 -0600
changeset 147
parent 81

fixed bus error handling for real this time (save registers before every instruction and push the saved registers if a bus error occurs, since the instruction may have changed registers before the bus error, and also stop the instruction immediately with longjmp so it won't change memory after the bus error)

This isn't actually what a real 68k does, but it is a good enough approximation. A real 68k will jump back into the middle of the faulted instruction and resume it from the memory access that faulted as opposed to restarting from the beginning like this CPU emulation does. It would be a lot harder to do that with the way this CPU library is designed. Newer versions of MESS basically do the same thing (they use a newer version of this library).

philpem@0 1 syntax: glob
philpem@0 2 obj/*.o
philpem@0 3 dep/*.d
philpem@0 4 *~
philpem@0 5 .*.sw?
philpem@0 6 .~lock*
philpem@0 7 .buildnum
philpem@2 8
philpem@5 9 # musashi build artefacts
philpem@5 10 src/musashi/m68kopac.c
philpem@5 11 src/musashi/m68kopdm.c
philpem@5 12 src/musashi/m68kopnz.c
philpem@5 13 src/musashi/m68kops.c
philpem@5 14 src/musashi/m68kops.h
philpem@5 15 dep/musashi/*.d
philpem@5 16 obj/musashi/*.o
philpem@5 17 obj/musashi/m68kmake
philpem@5 18
philpem@5 19 # version header
philpem@5 20 src/version.h
philpem@5 21
philpem@5 22 # final executable binary
philpem@15 23 freebee
philpem@5 24 3b1emu
philpem@5 25
philpem@2 26 # ignore ROMs and techref
philpem@2 27 roms
philpem@2 28 TRM
philpem@58 29 misc
philpem@81 30 discs