Comments (5)
Ah, nice catch. The PC relative load is indeed an oversight. About the third one, "infinite validation loop" means that the values keep changing in such a way that addresses move back and forth. armips tries to optimize opcodes and pools to take up little space, but sometimes this causes them to change size every iteration (for example, in ARM, when it sees that an immediate load can be converted to a mov instruction, but next iteration the immediate is now smaller by a value of 4 because it was no longer put into a pool, and now it doesn't fit into mov anymore). I'll have to check why this happens and disable the specific optimizations after too many iterations.
from armips.
Can you supply a test case where the issue happens?
from armips.
Mmkay. Tested with the latest (current) version...
After .gba, and between .open filename address/.close.... it is literally:
-Stuck inside invalidation loop:
.org 0x080000C0
ldr r0, [thelabel]
thelabel:
-PC-relative address must be word-aligned: (Error not supposed to show/should be correct.)
.org 0x080000C0
ldr r0, [thelabel]
mov r1, 0x20
thelabel:
-Stuck inside invalidation loop:
.org 0x080000C0
ldr r0, [thelabel]
mov r1, 0x20
mov r2, 0x20
thelabel:
-Compiles okay:
.org 0x080000C0
ldr r0, [0x080000C4]
The invalidation loop error should tell you the last line. (Not necessarily the one with the label./.word number after label.)
from armips.
Thanks. The latest commit should have fixed it, your test cases worked as intended for me with it (that is, error, no error, error, no error).
I also fixed the very first issue now.
from armips.
Thanks! Seems to work now! You are welcome.
One of my experiments was to convert one of the sections in Golden Sun 2 into assembly (via a program I write) to see how that works with automated pointering... (That game (and many others from the same company) has a number of "code files" with free space at the end of them, so it's not as hard as it would probably be for an entire game.) - Probably would do the whole game if I like my results, since I know a vast majority (not all) of the data in that game. Kind of a fun theory to how to do a game editor. (And who knows if this would challenge others to try the same with other games, if successful.)
from armips.
Related Issues (20)
- Vector loads/stores element not checked for validity HOT 1
- No data range checks
- Enums
- 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
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.