Created
June 5, 2014 18:11
-
-
Save mkusher/df494b2c5eabcd5abeb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type MuCommand is (StartCommand, NextCommand, WriteAcc, ReadAcc, WriteRamAddress, | |
ReadRam, WriteRam, IncrementPC, ReadPC, WritePC, ReadROM, WriteTemp, ReadTemp, | |
ReadR0Address, AluCompare, CheckNC, JMP, NOPE, WriteBus, ReadPSW, WritePSW); | |
type MuState is array(0 to 15) of MuCommand; | |
type MuGraph is array(0 to 63) of MuState; | |
constant MovADataGraph : MuGraph := ( | |
(ReadPC, others => nope), | |
(IncrementPC, others => nope), | |
(WritePC, WriteBus, others => nope), | |
(ReadROM, others => nope), | |
(ReadPC, WriteACC, others => nope), | |
(IncrementPC, others => nope), | |
(WritePC, WriteBus, others => nope), | |
(ReadROM, others => nope), | |
(StartCommand, others => nope), | |
others => ( others => nope ) | |
); | |
constant MovR0AGraph : MuGraph := ( | |
(WriteRamAddress, ReadR0Address, others => nope), | |
(ReadACC, others => nope), | |
(WriteRam, ReadPC, others => nope), | |
(IncrementPC, others => nope), | |
(WritePC, WriteBus, others => nope), | |
(ReadROM, others => nope), | |
(StartCommand, others => nope), | |
others => ( others => nope ) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment