-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instruction set for processor #2
Comments
Instructions is so big thing that it would be better to split it into namespace. public class Instruction
{
public string InstructionMnemonic { get; set; }
public int LengthInBytes { get; set; }
public int DurationInCycles { get; set; }
public Flag[] FlagsAffected { get; set; }
} Then you create array of Instruction, where an instruction object stores a opcode |
I don't think we need that complex system, maybe... |
actually I still want to use an own class. Then you can save an extra data you might need. Other thing is that, instead of you use Flags[](yes, I mistype it earlier), it could be type of byte public byte FlagsAffected { get; set; } Then you can set it like this for example: var ins = new Instrction { FlagsAffected = Flags.C | Flags.N }; all flags combined is 0xF0, so its enough smalla for byte |
Instruction set is becoming so big, that it's better to write dll for that, maybe. |
Maybe operand could be an enum? |
So, before I'll write rest of instructions, I'll do GUI. I don't want to waste a time writing a full instruction set and later see that I need some redesigning. I'll start #22: GUI, before I continue with this. |
I haven't decided how to implement this. Memory have to design before this.
The text was updated successfully, but these errors were encountered: