This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Getting the character out of the .irpc directive
- From: mccoards at netscape dot net
- To: binutils at sources dot redhat dot com
- Date: Tue, 30 Dec 2003 09:58:32 -0500
- Subject: Getting the character out of the .irpc directive
In as version 2.9.1 I get the error message "Error: unexpected end of file in irp or irpc" when trying to use the .irpc directive/macro to generate a character value. Is there a work around to calculate the caracter value in the repeat character directive? Actually I really just want val = "cat" since "cat" will fit in a 4-byte wide integer.
.set val,0
.irpc arg,cat
.set val,val<<8
.set val,val+'\arg'
.endr
__________________________________________________________________
New! Unlimited Access from the Netscape Internet Service.
Beta test the new Netscape Internet Service for only $1.00 per month until 3/1/04.
Sign up today at http://isp.netscape.com/register
Act now to get a personalized email address!
Netscape. Just the Net You Need.