Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
menotti committed May 29, 2021
2 parents 6b0a52c + db55d49 commit cb04d72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assembler/assembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import time

atable, ltable, dtable, vtable = {}, {}, {}, [] #initialize global tables
address_size = 4
jump_size = 7
address_size = fields_table["address"]
jump_size = fields_table["jump"]

try:
filename = sys.argv[1]
Expand Down
6 changes: 6 additions & 0 deletions assembler/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@
"unused" : 32,
"data" : 16
}

fields_table = {
"opcode" : 4,
"address" : 4,
"jump" : 7
}

0 comments on commit cb04d72

Please sign in to comment.