GithubHelp home page GithubHelp logo

Comments (7)

Kingcom avatar Kingcom commented on September 17, 2024

I couldn't reproduce this. Can you post some sample code that triggers it?

from armips.

archshift avatar archshift commented on September 17, 2024

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.

sp1187 avatar sp1187 commented on September 17, 2024

Your example works correctly for me.
Could you compile/download the latest version and try that one?

from armips.

archshift avatar archshift commented on September 17, 2024

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.

Z6n4 avatar Z6n4 commented on September 17, 2024

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.

Kingcom avatar Kingcom commented on September 17, 2024

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.

Kingcom avatar Kingcom commented on September 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.