添加基础指令解析和运行

This commit is contained in:
2025-04-17 00:04:59 +08:00
parent 5aec6bced8
commit be8c08f176
4 changed files with 288 additions and 4 deletions

View File

@@ -23,9 +23,9 @@ CC = 'gcc'
# HEX = 'C:\\ARM_GCC\\bin\\arm-none-eabi-objcopy' + ' -O ihex'
# BIN = 'C:\\ARM_GCC\\bin\\arm-none-eabi-objcopy' + ' -O binary -S'
CSRC = []
CSRC = ["main.c"]
CINC = ['-Isoft']
CINC = ['-Isoft',"-Icpu"]
CDEF = ["-DTEST","-DLINUX"]
@@ -184,7 +184,8 @@ def build_target(src:list[str]):
def main():
global CSRC
global ASRC
CSRC+=find_type('.\\',['c','C'])
CSRC+=find_type('.\\soft',['c','C'])
CSRC+=find_type('.\\cpu',['c','C'])
# ASRC+=find_type('./',['s','S','asm','ASM'])
if(not os.path.exists(BUILD_DIR)):