3 ; Copyright (C) 2010 Leo C.
5 ; This file is part of avrcpm.
7 ; avrcpm is free software: you can redistribute it and/or modify it
8 ; under the terms of the GNU General Public License as published by
9 ; the Free Software Foundation, either version 3 of the License, or
10 ; (at your option) any later version.
12 ; avrcpm is distributed in the hope that it will be useful,
13 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ; GNU General Public License for more details.
17 ; You should have received a copy of the GNU General Public License
18 ; along with avrcpm. If not, see <http://www.gnu.org/licenses/>.
23 ;------------------------------------------------
33 ;------------------------------------------------
43 ;------------------------------------------------
54 ;------------------------------------------------
55 ; load 16 bit constant to register pair
62 ;------------------------------------------------
63 ; load 16 bit direct from data space
70 ;------------------------------------------------
71 ; store 16 bit direct to data space
78 ;------------------------------------------------
79 ; add 16 bit constant to register pair
86 ;------------------------------------------------
87 ; sub 16 bit constant from register pair
94 ;------------------------------------------------
95 ; Move single bit between two registers
97 ; bmov dstreg,dstbit,srcreg.srcbit
104 ;------------------------------------------------
110 .org @0 ; vector address
111 .if abs(pos_ - PC) > 2048
114 rjmp pos_ ; jump to handler
116 .org pos_ ; restore PC
119 ;------------------------------------------------
123 .if FLASHEND > 0x0fff
130 ;------------------------------------------------
134 .if FLASHEND > 0x0fff
138 .if abs(PC - @0) > 2047
151 ;------------------------------------------------
153 ; printstring "String"
156 .if FLASHEND > 0x0fff
168 ;------------------------------------------------
178 ;------------------------------------------------
181 ; where F is the flag to print
198 ;------------------------------------------------
199 ; db_version VMAJOR, VMINOR
210 .db maj1_+'0',maj0_+'0','.',min1_+'0',min0_+'0',0
212 .db maj1_+'0',maj0_+'0','.', min0_+'0',0,0
216 .db maj0_+'0','.',min1_+'0',min0_+'0',0,0
218 .db maj0_+'0','.', min0_+'0',0
223 ; vim:set ts=8 noet nowrap