YCPU
YCPU copied to clipboard
An imaginary 16-bit cpu, with a complete specification, emulator, assembler, and disassembler, in C#.
I think this should be more accurate. These operations are active when zero flag is clear. (values aren't equal) Let me know if I'm mistaken. I tried to keep it...
https://github.com/ZaneDubya/YCPU/blob/494796cb6be5a672989fb251460a7b916272bc01/Source/Libraries/YpsilonCPU/Emulation/Processor/YCPU.Instructions.cs#L768
`RegControl cr = (RegControl)((operand & 0x0700) >> 8);` Appears to be reading bits A98 (rrE per spec). Should have `(operand & 0x0E00)` Apparently I'm writing an issue rather than a...
https://github.com/ZaneDubya/YCPU/blob/652601eb3a7540d5b1a610346a5b0b43469328b4/Source/Libraries/YpsilonCPU/Emulation/Processor/YCPU.BitPatterns.cs#L63 Suggested fix: private void BitPatternBTI(ushort operand, out ushort value, out RegGeneral destination) { destination = (RegGeneral)((operand & 0xE000) >> 13); // bits DEF RegGeneral source = (RegGeneral)((operand & 0x0F00)...