]> cloudbase.mooo.com Git - avrcpm.git/blobdiff - avr/macros.inc
SVN --> GIT
[avrcpm.git] / avr / macros.inc
index fc79befe9179162eaab294a644dc83f1cf054964..7d14839a3afd050c92c0140e609a2f2295e35c8d 100644 (file)
@@ -17,7 +17,7 @@
 ;    You should have received a copy of the GNU General Public License
 ;    along with avrcpm.  If not, see <http://www.gnu.org/licenses/>.
 ;
-;    $Id$
+;    $Id: macros.inc 241 2015-12-10 09:38:25Z rapid $
 ;
 
 ;------------------------------------------------
   .endif
 .endm
 
+;------------------------------------------------
+; Make string.
+;      makestring "String"
+
+.macro makestring
+  .if strlen(@0) % 2
+    .db @0,0
+  .else
+    .db @0,0,0
+  .endif
+.endm
+
 ;------------------------------------------------
 ; Print string.
 ;      printstring "String"