[Modified] change the way we decode and exec

This commit is contained in:
bLueriVerLHR
2023-05-12 18:47:34 +08:00
parent 5f2016f254
commit cca1da6765
5 changed files with 199 additions and 22 deletions

View File

@@ -10,7 +10,7 @@
#define COMMON_H__
#ifdef DEBUG_MODE
#define Log(fmt, ...) printf("[%s@%d %ld] " fmt "\n", __FILE__, __LINE__, clock(), ## __VA_ARGS__)
#define Log(fmt, ...) printf("[%s:%d %ld] " fmt "\n", __FILE__, __LINE__, clock(), ## __VA_ARGS__)
#define panic(x) do { \
Log(x); \

View File

@@ -4,7 +4,7 @@
#define DEVADDR_H__
#define RAM_ADDR 0x0000'0000
#define IMG_ADDR 0x0000'8000
#define IMG_ADDR 0x0001'04d8
#define STK_ADDR 0x2000'0000
#define DEVICE_BASE 0xa0000000