]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blob - include/common.inc
scopes: Rename dscr_hantek_6022be.inc to dscr_scope.inc.
[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, see <http://www.gnu.org/licenses/>.\r
18 ;;\r
19 \r
20 .macro string_descriptor_a n,str\r
21 _string'n:\r
22         .nchr   len,"'str"\r
23         .db     len * 2 + 2\r
24         .db     3\r
25         .irpc   i,^"'str"\r
26                 .db     ''i, 0\r
27         .endm\r
28 .endm\r
29 \r
30 .macro string_descriptor_lang n,l\r
31 _string'n:\r
32         .db     4\r
33         .db     3\r
34         .dw     >l + (<l * 0x100)\r
35 .endm\r