+;;\r
+;; This file is part of the sigrok-firmware-fx2lafw project.\r
+;;\r
+;; Copyright (C) 2016 Stefan Brüns <stefan.bruens@rwth-aachen.de>\r
+;;\r
+;; This program is free software; you can redistribute it and/or modify\r
+;; it under the terms of the GNU General Public License as published by\r
+;; the Free Software Foundation; either version 2 of the License, or\r
+;; (at your option) any later version.\r
+;;\r
+;; This program is distributed in the hope that it will be useful,\r
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+;; GNU General Public License for more details.\r
+;;\r
+;; You should have received a copy of the GNU General Public License\r
+;; along with this program; if not, write to the Free Software\r
+;; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\r
+;;\r
+\r
+.macro string_descriptor_a n,str\r
+_string'n:\r
+ .nchr len,"'str"\r
+ .db len * 2 + 2\r
+ .db 3\r
+ .irpc i,^"'str"\r
+ .db ''i, 0\r
+ .endm\r
+.endm\r
+\r
+.macro string_descriptor_lang n,l\r
+_string'n:\r
+ .db 4\r
+ .db 3\r
+ .dw >l + (<l * 0x100)\r
+.endm\r