Motorola 680x0 Standalone Emulation Library
The motive behind this repository is to provide a surrogate means of aiding in relevant Motorola 68000 developments.
Such is the case with one of the many ambitions, to create a dedicated OS Kernel specifically for this series of microprocessors
Created using ANSI C99 standard, this project aims to promote an ease of use means of creating a library that emulates the likeness of these microprocessors
git clone this repository
make clean
make
the following output will vary depending on system:
lib68k.a
lib68k.so
the makefile in question is universal, allowing for ease of use compiling on other systems
Below is an example provided to showcase how the OPCODE_HANDLER_TABLE
is able to store and evaluate respective Opcodes and Operands
More specifically, this is an example of showcasing the simulator using the designated amount of Cycles provided as an arg.
This is a WIP and will be provided soon
You can find the provided example Assembly code here
In my experience, I have found that compiling with clownassembler works the best - for it's ease of use means of being able to provide input and output as well as providing in depth and concise warnings and error messages.
Follow the repository's instructions on how to work with that, or alternatively, use a 68K Assembler of your choosing
Another example is showcasing the Memory Read and Writes in accordance with the design of the struct which encompasses said logic
Some of the Opcodes and their extended addressing capabilities such as IMM, EA, DI, PI, etc - are all reserved for an eventual expansion on this Library.
As of right now, I wanted to focus on getting everything working with 68000 emulation to prioritise mdemu developments