Comments (7)
I couldn't reproduce this. Can you post some sample code that triggers it?
from armips.
This did it for me:
.nds
.create "foo.bin", 0x0
mov r0, #0xFF
Running armips test.asm
:
/Users/user/test.asm(3) error: Invalid shifted immediate FF
Aborting.
from armips.
Your example works correctly for me.
Could you compile/download the latest version and try that one?
from armips.
Nope, continue to have the same problem.
For context, I'm on a mac, using ARMIPS64 Assembler v0.9.0 (Feb 2 2017 22:58:55) by Kingcom
.
from armips.
I am having the same issue in 0.8.0
My value is 0x1140, and it's saying "Invalid shifted immediate 1160" (trying to add 0x20)
from armips.
0x1160 cannot be represented as a shifted immediate. If you convert the value to binary, you get 0b1000101100000. Here, you need to remove an even amount of least significant zero bits. This results in 0b100010110, which is 9 bits, while a shifted immediate has to fit into 8 bits.
0x1140 is 0b1000101000000, and thus 0b1000101, which fits into 8 bits.
from armips.
This is very likely to be the same issue as in #108, so I'm closing it for now. Let me know if the issue persists.
from armips.
Related Issues (20)
- Non-one-line-expanding macro in a delay slot should cause an error
- Tons of uninitialized memory access bugs HOT 9
- New validation of RSP vector instructions seems to incorrectly mark some cases as invalid HOT 11
- OT question but still related to your works
- Improve RSP immediate value range
- [feature request] get the hash for a binary file and check out the value
- .autoregion broken on latest version of armips. HOT 3
- cmp with negative immediate value off by 1 HOT 1
- missing ARM addressing modes for LDRH
- [feature request] Either inputname() or some way to .org to end of file HOT 3
- Automated builds return 404 error HOT 2
- Missing option to export symbols from armips HOT 1
- Build failure on Linux Xubuntu 22.04 LTS HOT 1
- Automated Armips Build links return 404 HOT 7
- ARM ldrsh parameter failure
- Prevent armips from relocating sections HOT 2
- Visual C++ Redistributable Dependency Not Indicated for Automated Windows Builds HOT 1
- Automated Builds Site Timing Out
- Nobits sections are no longer relocated
- `.importobj` ignores `.relativeinclude`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from armips.