Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Gabezcommodore ! (Registered 2025-07-24) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Branch too far in 64TASS
2008-08-13 17:17
Higgie

Registered: Apr 2002
Posts: 134
Branch too far in 64TASS

hiho!

what does 'Branch too far' mean?

the readme of 64tass says: 'can't relative branch that far'

i understand that sentence but what is the limit then?
and how to deal with the limitation?

sorry for coming up with stupid stuff already known to most of the decent coders here.... ;)

thanx in advance!
 
... 10 posts hidden. Click here to view all posts....
 
2008-08-14 10:10
WVL

Registered: Mar 2002
Posts: 924
Quote: @higgie: just do it manually. :D I mean, if the compiler complains, simply invert your branch and add a jmp. It's really not that hard.

F.e.

beq farAwayThatComplains

Invert it and make it branch past the jmp:

bne *+3
jmp farAwayThatComplains ; won't complain anymore

Simple as that!




FAIL!

should be

bne *+5
jmp FarAwayThatComplains

:)

Or just use + and -, which is easier imo..

bne +
jmp FarAway
+
2008-08-14 11:06
JackAsser

Registered: Jun 2002
Posts: 2038
@WVL: blahblahblahblahblahblalblah. :D
2008-08-14 11:26
WVL

Registered: Mar 2002
Posts: 924
Quote: @WVL: blahblahblahblahblahblalblah. :D

bah! you just dont understand the power of * ;D
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Epyx/TSA
uneksija
csabanw
pievspie
JSL
Barfly/Extend
Andy/AEG
Paladin/G★P
X-Raffi/X-Rated
Guests online: 66
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Harminc  (9.7)
4 Codeboys & Endians  (9.7)
5 Mojo  (9.7)
6 Coma Light 13  (9.6)
7 Edge of Disgrace  (9.6)
8 Comaland 100%  (9.6)
9 Wonderland XIV  (9.6)
10 Signal Carnival  (9.6)
Top onefile Demos
1 Morphing Starball  (9.9)
2 Nine  (9.8)
3 Layers  (9.6)
4 Cubic Dream  (9.6)
5 Party Elk 2  (9.6)
6 Copper Booze  (9.5)
7 Scan and Spin  (9.5)
8 Onscreen 5k  (9.5)
9 Grey  (9.5)
10 Dawnfall V1.1  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Censor Design  (9.3)
4 Oxyron  (9.3)
5 Artline Designs  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 OTD  (9.8)
3 Antitrack  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.036 sec.