#390 - anli - Tue Jan 07, 2003 9:08 am
I have some problems using infix operators together with numbers expressed in other forms than decimal. For instance, I am trying to use hexadecimal in the example below.
Technical data:
Version of as: 2.11.2
Command line: as -marm7tdmi file.S -o demo.o
@This works ok
mov r1, #0x400
@This to
mov r1, #400
@This also works, results in 404
mov r1, #400 + 4
@This gives me the error message: Invalid constant!
mov r1, #0x400 + 4
@This also gives me the error message: Invalid constant!
mov r1, #0x400 + 0x4
@So does this
mov r1, #0x0400 + 0x0004
The problem description has been sent to bugs@gnu.org, but I have not yet got a response.
Anyone that understands why this happens?
/anli
Technical data:
Version of as: 2.11.2
Command line: as -marm7tdmi file.S -o demo.o
@This works ok
mov r1, #0x400
@This to
mov r1, #400
@This also works, results in 404
mov r1, #400 + 4
@This gives me the error message: Invalid constant!
mov r1, #0x400 + 4
@This also gives me the error message: Invalid constant!
mov r1, #0x400 + 0x4
@So does this
mov r1, #0x0400 + 0x0004
The problem description has been sent to bugs@gnu.org, but I have not yet got a response.
Anyone that understands why this happens?
/anli