8080
8080 copied to clipboard
Simplified "self-referencing" for functions in a structure
I really appreciate your work. I am using it to build an 8085 emulator of my CP/M project. Two minor issue you may want to look at:
-
A simplified way of using "self-referencing" functions in a structure. Have a look at my version of your header file. i8085_h.txt
-
Pretty minor but the 8080 interrupt can handle one, two and three byte opcodes. Your code only allows a single byte opcode.
Hello,
About your first point; the idea of "userdata" is not to have a self-referencing pointer: the user may want to pass a pointer to another structure ; see https://github.com/superzazu/invaders/blob/master/invaders.c#L241 for a practical example.
Thank you for pointing out the problem about interrupts, it is indeed something I will have to implement.