This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Indication to begin a program

I need some indications to begin writing a program.

Write a compare routine to compare 64-bits values , using only two instructions.

Thanks for your indications !

Parents
  • It is possible, because the assignment is to "compare" - the assignment is not to act on the result of the comparison.

    I'll send you the solution. There is one small sacrifice, though, but I think that will be acceptable.

    Besides: Yasuhiko is right. It will be best to attempt doing this on the 32-bit ARM architecture, because you can't use conditional execution without adding an IT instruction to your code, that would make it 3 instructions.

    My solution is still available, though, however, it will change the contents of one register (which you can freely choose).

Reply
  • It is possible, because the assignment is to "compare" - the assignment is not to act on the result of the comparison.

    I'll send you the solution. There is one small sacrifice, though, but I think that will be acceptable.

    Besides: Yasuhiko is right. It will be best to attempt doing this on the 32-bit ARM architecture, because you can't use conditional execution without adding an IT instruction to your code, that would make it 3 instructions.

    My solution is still available, though, however, it will change the contents of one register (which you can freely choose).

Children