kolibrios/contrib/toolchain/avra/examples/testcode_avra-1_3_0.asm
Serhii Sakhno 7c539d8e19 upload avra
git-svn-id: svn://kolibrios.org@6400 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-04-13 17:05:47 +00:00

28 lines
433 B
NASM

; Test new device
.device ATmega328P
; Test number sign labels
#define TEST
.define DOTTEST
; Test whitespace between function name and value
ldi r16, high(0)
ldi r17, high (0)
;---
; Test data segment start with a number sign instead of a dot
;---
#DSEG
Buffer: .BYTE 8 ; Reserve 64 bits
;---
; EEPROM segment
;---
.ESEG
; Test line continuation
AVERAGE: .db 0xF0, 0xFF, \
0x55, 0xFF, \
0x55, 0x0F