File: define.s

package info (click to toggle)
ava 0.3b.19990815-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 864 kB
  • ctags: 952
  • sloc: cpp: 4,666; pascal: 3,124; asm: 196; makefile: 90
file content (26 lines) | stat: -rw-r--r-- 468 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
  define.s

  This example shows the way external macros can be used.
  Uros Platise (c) 1999

  You can externally change the value of the SYS_CLK macro.
  Type: 
    ava -DSYS_CLK 		; to set SYS_CLK = 1
  or
    ava -DSYS_CLK=3		; to set SYS_CLK = 3

  This file will link with errors, since label "test_jump" is not defined. 
*/

#arch AT90S1200
	seg flash.code

#ifdef SYS_CLK
	ldi r16, SYS_CLK
#endif

extern test_jump
#ifdef test_jump
	rcall test_jump
#endif