-// Trashes r0,r1\r
-void CheckInterrupt(int op)\r
-{\r
- ot(";@ CheckInterrupt:\n");\r
- ot(" ldr r1,[r7,#0x44] ;@ Get SR high T_S__III and irq level\n");\r
- ot(" movs r0,r1,lsr #24 ;@ Get IRQ level\n"); // same as ldrb r0,[r7,#0x47]\r
- ot(" beq NoInts%x\n",op);\r
- ot(" cmp r0,#6 ;@ irq>6 ?\n");\r
- ot(" andle r1,r1,#7 ;@ Get interrupt mask\n");\r
- ot(" cmple r0,r1 ;@ irq<=6: Is irq<=mask ?\n");\r
- ot(" blgt CycloneDoInterrupt\n");\r
- ot("NoInts%x%s\n", op,ms?"":":");\r
- ot("\n");\r
-}\r
-\r