[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is this a bug? Can do mov r0, #676
From: |
Jay Monkman |
Subject: |
Is this a bug? Can do mov r0, #676 |
Date: |
Sat, 01 Oct 2005 11:27:38 -0500 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20050817) |
I'm using a cross assembler for ARM, running on x86, and seeing something weird.
Here's the test program:
foo:
mov r0, #675
Assemble with this:
arm-linux-as -o foo.o foo.S
Here's what happens:
arm-linux-as -o foo.o foo.s
foo.s: Assembler messages:
foo.s:0: Warning: end of file not at end of a line; newline inserted
foo.s:2: Error: invalid constant -- `mov r7,#675'
If the number is 676 it works fine.
I've tried with the following binutils versions with identical results.
2.13.2.1
2.15.
2.16.1
Immediate operands are limited to 8 bits. Then why does 676 work?
- Is this a bug? Can do mov r0, #676,
Jay Monkman <=