scarybeasts / beebjit

A very fast BBC Micro emulator.
Other
132 stars 15 forks source link

Build and run (at least in interp mode...) on MacOS #3

Closed tom-seddon closed 1 year ago

tom-seddon commented 4 years ago

More for interest/amusement than accepting! - this won't build on Linux any more as it stands...

Changes:

Stuff still to do:

Thanks,

--Tom

scarybeasts commented 4 years ago

Thanks for looking into this Tom! This is so cool!

To start getting bits landed, would you be willing to split into multiple relatively independent PRs? (That's my personal way of preferring to work.) Some pieces stand out as being suitable for splitting out and landing right away:

scarybeasts commented 4 years ago

One further comment on the "jCC 0" fixes, having thought about it some more. Would it make sense to have them all jump to the same place, along the lines of "jb DWORD PTR asm_x64_jit_unpatched", where asm_x64_jit_unpatched would have the body of "int 3" or "ud2" or something like that. This would seem to offer a couple of benefits: a) Easier to copy/paste and b) Failure to actually patch up any of the jump targets will fail more readily and clearly.

tom-seddon commented 4 years ago

Certainly - now I know this stuff is actually going to work, it would make more sense to redo it in multiple parts!

I'm happy to leave qsort_r to you, and I'll just follow along. Same with the keycodes. I can do the rest.

Regarding jcc 0 - I assume the dword ptr does work in gas in Intel mode?

--Tom

scarybeasts commented 4 years ago

DWORD PTR should be good -- existing code seems to variously use DWORD PTR, WORD PTR and lots of BYTE PTR!