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

11 lines
152 B
C
Raw Normal View History

2018-09-20 05:51:56 +08:00
#define TRACE (*(unsigned char *)0x40000000)
void main(void) {
2018-09-20 18:24:07 +08:00
char msg[] = "abcdefg\n";
2018-09-20 05:51:56 +08:00
int i;
2018-09-20 18:24:07 +08:00
for (i=0; i<5; i++) {
2018-09-20 05:51:56 +08:00
TRACE = msg[i];
}
}