16 lines
275 B
Python
16 lines
275 B
Python
![]() |
|
||
|
from cpu import instruction as ins
|
||
|
from cpu import cpu
|
||
|
|
||
|
|
||
|
|
||
|
class compiler(object):
|
||
|
def __init__(self,reg_num:int) -> None:
|
||
|
self.symbol_stack_list:list[dict]=[]
|
||
|
self.symbol_reg_list:list[dict]=[]
|
||
|
self.cpu=cpu(0x1000_0000,1*1024*1024,0x2000_0000,1*1024*1024)
|
||
|
|
||
|
|
||
|
|
||
|
|