Hazard3/test/sim/hellow/main.c

11 lines
186 B
C
Raw Normal View History

2021-05-21 09:34:16 +08:00
#include "tb_cxxrtl_io.h"
2021-07-24 18:50:23 +08:00
int main() {
tb_puts("Hello world from Hazard3 + CXXRTL!\n");
2023-03-20 08:00:51 +08:00
asm volatile(
"cm.push {ra, s0-s2}, -16\n"
"cm.pop {ra, s0-s2}, +16\n"
);
2021-07-24 18:50:23 +08:00
return 123;
2021-05-21 09:34:16 +08:00
}