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

10 lines
123 B
C

#define TRACE (*(unsigned char *)0x40000000)
void main(void) {
int i;
for(i=0;i<10;i++) {
TRACE = 'a' + i;
}
}