tests/languages/asmatmel/register_feature.test
raw| 1 | OUT PORTB,x |
| 2 | ldi r17,(1<<PD07) |
| 3 | OUT PORTD,r31 |
| 4 | OUT PORTB,A |
| 5 | OUT PORTL,r10 |
| 6 | |
| 7 | ---------------------------------------------------- |
| 8 | |
| 9 | [ |
| 10 | ["op-code", "OUT"], |
| 11 | ["constant", "PORTB"], |
| 12 | ["punctuation", ","], |
| 13 | ["register", "x"], |
| 14 | |
| 15 | ["op-code", "ldi"], |
| 16 | ["r-register", "r17"], |
| 17 | ["punctuation", ","], |
| 18 | ["punctuation", "("], |
| 19 | ["decimal-number", "1"], |
| 20 | ["operator", "<<"], |
| 21 | ["constant", "PD07"], |
| 22 | ["punctuation", ")"], |
| 23 | |
| 24 | ["op-code", "OUT"], |
| 25 | ["constant", "PORTD"], |
| 26 | ["punctuation", ","], |
| 27 | ["r-register", "r31"], |
| 28 | |
| 29 | ["op-code", "OUT"], |
| 30 | ["constant", "PORTB"], |
| 31 | ["punctuation", ","], |
| 32 | ["register", "A"], |
| 33 | |
| 34 | ["op-code", "OUT"], |
| 35 | ["constant", "PORTL"], |
| 36 | ["punctuation", ","], |
| 37 | ["r-register", "r10"] |
| 38 | ] |
| 39 | |
| 40 | ---------------------------------------------------- |
| 41 | |
| 42 | Check for registers |