-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c70bde7
commit 8512fcb
Showing
8 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ | |
MIN_NUMBER = -(1 << (WORD_SIZE - 1)) | ||
|
||
MEMORY_SIZE = 2048 | ||
# STACK_SIZE = 1024 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
from src.isa.data import Data | ||
from src.isa.files import write_instructions, write_data, read_instructions, read_data | ||
from src.isa.files import read_data, read_instructions, write_data, write_instructions | ||
from src.isa.instruction import Instruction | ||
from src.isa.memory import DataMemory, InstructionMemory, create_data_memory, create_instructions_memory | ||
from src.isa.opcode import Opcode | ||
from src.isa.program import Program | ||
|
||
__all__ = [ | ||
"Data", | ||
"Instruction", | ||
"write_instructions", | ||
"write_data", | ||
"read_instructions", | ||
"read_data", | ||
"DataMemory", | ||
"InstructionMemory", | ||
"create_data_memory", | ||
"create_instructions_memory", | ||
"Opcode", | ||
"Program", | ||
] |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from __future__ import annotations | ||
|
||
import json | ||
|
||
from src.constants import MEMORY_SIZE | ||
|
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
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
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