1
0
mirror of https://github.com/livingcomputermuseum/ContrAlto.git synced 2026-05-01 05:49:42 +00:00

Initial rough implementation of Display hardware and associated tasks. Not really working.

This commit is contained in:
Josh Dersch
2015-11-10 17:04:05 -08:00
parent e1c90dbe01
commit ca638f1d6e
17 changed files with 697 additions and 128 deletions

View File

@@ -71,9 +71,9 @@ namespace Contralto.CPU
public bool ExecuteNext()
{
// TODO: cache microinstructions (or pre-decode them) to save consing all these up every time.
MicroInstruction instruction = new MicroInstruction(UCodeMemory.UCodeROM[_mpc]);
MicroInstruction instruction = UCodeMemory.DecodeCache[_mpc];
// Grab BLOCK bit so that other tasks can look at it
// Grab BLOCK bit so that other tasks / hardware can look at it
_block = instruction.F1 == SpecialFunction1.Block;
//Console.WriteLine("R5:{0},R6:{1},IR:{2} - {3}:{4}", OctalHelpers.ToOctal(_cpu._r[5]), OctalHelpers.ToOctal(_cpu._r[6]), OctalHelpers.ToOctal(_cpu._ir), OctalHelpers.ToOctal(_mpc), UCodeDisassembler.DisassembleInstruction(instruction, _taskType));