mirror of
https://github.com/handsomezhuzhu/2025-yatcpu.git
synced 2026-02-20 20:10:14 +00:00
12 lines
195 B
C
12 lines
195 B
C
|
|
extern void enable_interrupt();
|
|
|
|
void trap_handler(void *epc, unsigned int cause){
|
|
*((int*)0x4) = 0x2022;
|
|
}
|
|
|
|
int main(){
|
|
*((int*)0x4) = 0xDEADBEEF;
|
|
enable_interrupt();
|
|
for(;;);
|
|
} |