1
0
mirror of synced 2024-11-10 07:08:52 +01:00
avremu/source/test-suite/complex-memory.c
Christian Dietrich 8d320f3744 Use TDS Layout
2014-10-09 15:20:20 +02:00

23 lines
351 B
C

#include <avr/io.h>
volatile char foo[30];
int main() {
foo[0] = 23;
foo[1] = 42;
foo[2] = foo[0] + foo[1];
asm volatile ("break");
}
/*
check-name: Complex Memory Operations
check-start:
\avr@instr@stepn{1000}
\avr@test@MEM{96}{00010111} % 23
\avr@test@MEM{97}{00101010} % 42
\avr@test@MEM{98}{01000001} % 65
check-end:
*/