What type of design pattern should I use to create the emulator?

I programmed the emulator, but I have some doubts about its proper organization, because, I see that it has some problems with connecting classes (CPU ↔ Machine Board). For example: I / O ports, interrupts, communication between two or more processors, etc.

I need the emulator to have better performance and a good understanding of the code.

PD: Sorry for my bad English.

Edition:

Request multiple patterns.

+3
source share
3 answers

You have two closely related cases.

  • Command. , , - . .

  • . , , .

+3

"". , , . , , .

( , !)

+1

wiki. , . -, , QEMU DOSBox . SourceForge. :

, . State Machine, Command . .

+1

Source: https://habr.com/ru/post/1738041/


All Articles