[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
gpasm: embedding hex into text
From: Anthony Tekatch ####@####.#### Date: 26 Jan 2004 03:24:21 -0000 Message-Id: <20040125215556.2951c76a.anthony@unihedron.com> While using gpasm, the following fails: STRING0 STRFIX "Hello World\x0d\x0a\x00" STRFIX is my macro that expects a text string to be used with a DT directive. This is the error shown, also, I cannot find this error listed in the documentation: m876.asm:250:Error [157] Illegal character 0x15 in numeric constant Is there a way to include hex values into a text string? Thanks in advance, Anthony | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: gpasm: embedding hex into text
From: ####@####.#### Date: 26 Jan 2004 17:35:02 -0000 Message-Id: <012620041704.22623.d64@comcast.net> > While using gpasm, the following fails: > > STRING0 STRFIX "Hello World\x0d\x0a\x00" > > STRFIX is my macro that expects a text string to be used with a DT > directive. > > > This is the error shown, also, I cannot find this error listed in the > documentation: > > m876.asm:250:Error [157] Illegal character 0x15 in numeric constant > > I tested 0.12.0 on a Sparc. It works. I retested on win2k and it generated three numeric constant errors. What OS are you using? What version of gpasm? I will find the error tonight. > > Is there a way to include hex values into a text string? > As a work around, use the built in expressions. gpasm-0.12.0 beta test.asm 1-26-2004 11:00:48 PAGE 1 LOC OBJECT CODE LINE SOURCE TEXT VALUE 00001 00002 processor 18f452 00003 0010 00004 org 10 00005 0010 0C48 0C65 00006 dt "Hello World\r\n\0" 0014 0C6C 0C6C 0018 0C6F 0C20 001C 0C57 0C6F 0020 0C72 0C6C 0024 0C64 0C0D 0028 0C0A 0C00 00007 gpasm-0.12.0 beta test.asm 1-26-2004 11:00:48 PAGE 2 > > Thanks in advance, > > Anthony > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: gpasm: embedding hex into text
From: Anthony Tekatch ####@####.#### Date: 26 Jan 2004 23:18:32 -0000 Message-Id: <20040126175005.5c0d124a.anthony@unihedron.com> On Mon, 26 Jan 2004 17:04:30 +0000, ####@####.#### wrote: > I tested 0.12.0 on a Sparc. It works. I retested on win2k and it generated three numeric constant errors. What OS are you using? What version of gpasm? $ uname -o GNU/Linux This is actually a Knoppix/Debian installation. $ gpasm --version gpasm-0.12.0 beta > I will find the error tonight. Fantastic! > As a work around, use the built in expressions. > 0010 0C48 0C65 00006 dt "Hello World\r\n\0" That worked perfectly! Thank you Craig. -- Anthony | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |