2018-10-07 04:19:29 +08:00
|
|
|
|
|
|
|
#define TRACE (*(unsigned char *)0x40000000)
|
|
|
|
|
2019-01-14 01:20:02 +08:00
|
|
|
int main(void) {
|
2018-10-07 04:19:29 +08:00
|
|
|
int i;
|
|
|
|
for(i=0;i<10;i++) {
|
|
|
|
TRACE = 'a' + i;
|
|
|
|
}
|
2018-11-20 00:22:18 +08:00
|
|
|
|
|
|
|
asm volatile ("ecall");
|
|
|
|
|
2018-10-07 04:19:29 +08:00
|
|
|
}
|