]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blame - include/common.inc
Add Hantek PSO2020 firmware support
[sigrok-firmware-fx2lafw.git] / include / common.inc
CommitLineData
01c91958
UH
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
040a6eae 17;; along with this program; if not, see <http://www.gnu.org/licenses/>.\r
01c91958
UH
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