Skip to content

Commit

Permalink
added microcode for all ben eater instructions execpt LDI
Browse files Browse the repository at this point in the history
  • Loading branch information
rbaker26 committed Jun 17, 2020
1 parent 4a42625 commit 4254fd9
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 9 deletions.
6 changes: 3 additions & 3 deletions SAP1EMU.Engine-CLI/SAP1EMU.Engine-CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<AssemblyName>SAP1Emu</AssemblyName>
<StartupObject>SAP1EMU.Engine_CLI.Program</StartupObject>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AssemblyVersion>1.12.0.0</AssemblyVersion>
<FileVersion>1.12.0.0</FileVersion>
<Version>1.12.0</Version>
<AssemblyVersion>1.12.1.0</AssemblyVersion>
<FileVersion>1.12.1.0</FileVersion>
<Version>1.12.1</Version>
<Copyright>2020 Bob Baker</Copyright>
</PropertyGroup>

Expand Down
128 changes: 122 additions & 6 deletions SAP1EMU.Lib/InstructionSets.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,20 +183,136 @@
"SetName": "BenEater",
"SetDescription": "The instruction set outlined by Ben Eater.",
"instructions": [
{
"OpCode": "NOP",
"BinCode": "0000",
"MicroCode": [
"01011110001111",
"10111110001111",
"00100110001111",
"00111110001111",
"00111110001111",
"00111110001111"
]
},
{
"OpCode": "LDA",
"BinCode": "0001",
"MicroCode": [
"01011110001111",
"10111110001111",
"00100110001111",
"00011010001111",
"00101100001111",
"00111110001111"
]
},
{
"OpCode": "ADD",
"BinCode": "1111",
"BinCode": "0010",
"MicroCode": [
"01011110001111",
"10111110001111",
"00100110001111",
"00011010001111",
"00101110000111",
"00111100011111"
]
},
{
"OpCode": "SUB",
"BinCode": "0011",
"MicroCode": [
"01011110001111",
"10111110001111",
"00100110001111",
"00011010001111",
"00101110000111",
"00111100111111"
]
},
{
"OpCode": "STA",
"BinCode": "0100",
"MicroCode": [
"10101",
"00011"
"01011110001111",
"10111110001111",
"00100110001111",
"00011010001111",
"00111111001101",
"00111110001111"
]
},
{
"OpCode": "LDI",
"BinCode": "0101",
"MicroCode": [
"01011110001111",
"10111110001111",
"00100110001111",
"00111110001111",
"00111110001111",
"00111110001111"
]
},
{
"OpCode": "JMP",
"BinCode": "0110",
"MicroCode": [
"01011110001111",
"10111110001111",
"00100110001111",
"00111010001100",
"00111110001111",
"00111110001111"
]
},
{
"OpCode": "JIC",
"BinCode": "0111",
"MicroCode": [
"01011110001111",
"10111110001111",
"00100110001111",
"00111010001100",
"00111110001111",
"00111110001111"
]
},
{
"OpCode": "JEQ",
"BinCode": "1000",
"MicroCode": [
"01011110001111",
"10111110001111",
"00100110001111",
"00111010001100",
"00111110001111",
"00111110001111"
]
},
{
"OpCode": "OUT",
"BinCode": "0000",
"BinCode": "1110",
"MicroCode": [
"01010",
"11111"
"01011110001111",
"10111110001111",
"00100110001111",
"00111111001011",
"00111110001111",
"00111110001111"
]
},
{
"OpCode": "HLT",
"BinCode": "1111",
"MicroCode": [
"01011110001111",
"10111110001111",
"00100110001111",
"00111110001111",
"00111110001111",
"00111110001111"
]
}
]
Expand Down

0 comments on commit 4254fd9

Please sign in to comment.