File: Testcode_avra-1_2_3.asm

package info (click to toggle)
avra 1.2.3a-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 1,384 kB
  • ctags: 1,092
  • sloc: ansic: 6,329; asm: 747; pascal: 624; makefile: 82; sh: 5
file content (19 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
	.device ATmega8
	.org	0  
	.db	1,2
	.message "The previous line is ignored with avra-1.2.2 because .org 0 is terminated with CR only. "
	.message "This is line 5 but avra-1.2.2 shows line 4"
	.db 	"X%MINUTE%YEAR%"	; Take a look at this percent chars too : % % % %
	.db 	"%YEAR%HELLO%"		; Strange replacement, if one percent char is missing
	.db	"%HOUR%:%MINUTE%%"
	.db	"C"			; Look at the special char. (Error in listing only. HEX-file was ok)
		; Additional warning : Don't use linux editors with UTF charset ! A single special char
		; (Code > 127 in codepage 850 e.g. german umlauts) could be an unvisible TWO bytes sequence
		; in UTF coding. To be on the save side never use chars with code > 127. 
		; It's better to replace them by the code e.g.  .db "M",129,"nchen" (german town 'Munich')
	ldi R16, ';'			; This is wrong with avra-1.2.2.
	ldi R16, 0x3b			; Should generate same code like above

; TODO :
;	ldi	R16,high (11111)	; "high(" is OK, "high (" isn't. Same with other functions...