]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blob - include/common.inc
Add "fx2lafw-" prefix to the 6022BE/DDS120 firmware files.
[sigrok-firmware-fx2lafw.git] / include / common.inc
1 ;;\r
2 ;; This file is part of the sigrok-firmware-fx2lafw project.\r
3 ;;\r
4 ;; Copyright (C) 2016 Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de>\r
5 ;;\r
6 ;; This program is free software; you can redistribute it and/or modify\r
7 ;; it under the terms of the GNU General Public License as published by\r
8 ;; the Free Software Foundation; either version 2 of the License, or\r
9 ;; (at your option) any later version.\r
10 ;;\r
11 ;; This program is distributed in the hope that it will be useful,\r
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14 ;; GNU General Public License for more details.\r
15 ;;\r
16 ;; You should have received a copy of the GNU General Public License\r
17 ;; along with this program; if not, write to the Free Software\r
18 ;; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA\r
19 ;;\r
20 \r
21 .macro string_descriptor_a n,str\r
22 _string'n:\r
23         .nchr   len,"'str"\r
24         .db     len * 2 + 2\r
25         .db     3\r
26         .irpc   i,^"'str"\r
27                 .db     ''i, 0\r
28         .endm\r
29 .endm\r
30 \r
31 .macro string_descriptor_lang n,l\r
32 _string'n:\r
33         .db     4\r
34         .db     3\r
35         .dw     >l + (<l * 0x100)\r
36 .endm\r