source: Deliverables/D4.1/GCC/InterruptTest.c @ 557

Last change on this file since 557 was 185, checked in by mulligan, 9 years ago

Found a way to inline SDCC ASM directly into C to test hard to reach
opcodes that the SDCC compiler hardly ever spits out.

File size: 105 bytes
Line 
1int main()
2{
3  int i = 5;
4  __asm
5    mov r0, __i
6    add a, r0
7    mov __i, a
8  __endasm;
9  return i;
10}
Note: See TracBrowser for help on using the repository browser.