8080 icon indicating copy to clipboard operation
8080 copied to clipboard

Simplified "self-referencing" for functions in a structure

Open AlanCxxx opened this issue 4 years ago • 1 comments

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:

  1. A simplified way of using "self-referencing" functions in a structure. Have a look at my version of your header file. i8085_h.txt

  2. Pretty minor but the 8080 interrupt can handle one, two and three byte opcodes. Your code only allows a single byte opcode.

AlanCxxx avatar Oct 15 '19 11:10 AlanCxxx

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.

superzazu avatar Nov 26 '19 12:11 superzazu