943,797 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 3224
  • Assembly RSS
Dec 8th, 2008
0

long jump in tasm

Expand Post »
how do I do it?

I'm trying to make a conditional jump to a label:

jz newmm

but tasm says that the relative jump is out of range by 000D bytes. How do I change this to a long jump? How can I make it jump to an address, rather than a relative position in the memory?
Reputation Points: 5
Solved Threads: 1
Unverified User
carson myers is offline Offline
33 posts
since Sep 2007
Dec 9th, 2008
0

Re: long jump in tasm

Relative jumps are for small jumps, like you would use for if/else or loops.

So if you're using a relative jump which is out of range, perhaps take a hint that the body of your code is too complicated.

Or if you think it's still OK, then invert the test, so you branch over an actual jump.
jnz skip
jmp newmm
skip:
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Dec 10th, 2008
0

Re: long jump in tasm

okay thanks
Reputation Points: 5
Solved Threads: 1
Unverified User
carson myers is offline Offline
33 posts
since Sep 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: encryption
Next Thread in Assembly Forum Timeline: rotates





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC