risc-v-tlm/C/trace2/trace2.c

10 lines
123 B
C
Raw Normal View History

2018-09-20 05:51:56 +08:00
#define TRACE (*(unsigned char *)0x40000000)
void main(void) {
int i;
for(i=0;i<10;i++) {
TRACE = 'a' + i;
}
}