[TASM] errors in mirage.inc and misster.asm

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
User avatar
cartj
New Member
Posts: 51
Joined: Tue 17 Oct, 2006 10:49 pm
Location: North West U.S.

[TASM] errors in mirage.inc and misster.asm

Post by cartj »

I was experimenting with the misster tilemap routine and not having any problems but now TASM gives me these errors ( sorry, I know there are a lot of topics like this but I can't seem to find the answer in any other threads):

Code: Select all

mirage.inc line 0154: Duplicate label: (lcdinstport)
mirage.inc line 0155: Duplicate label: (lcddataport)
MiSSTeR.asm line 0318: Duplicate label: (Sleft)
tasm: pass 1 complete.
MiSSTeR.asm line 0318: label value misalligned.           (Sleft)
MiSSTeR.asm line 0379: Range of relative branch exceeded.
tasm: pass 2 complete.
tasm: Number of errors = 5
I don't understand why there would be errors in mirage.inc or misster.asm. Could there be something in my code causing this?
User avatar
thegamefreak0134
Extreme Poster
Posts: 455
Joined: Mon 23 Jan, 2006 10:09 pm
Location: In front of a Computer, coding
Contact:

Post by thegamefreak0134 »

Sounds very much like you have more than one calculator type defined at once. (This can happen if you include a lot of external libraries.) It could also be something to the effect of the libraries using the same name for something. (or your own code for that matter.) In any case, you will need to post a bit more info than your error list (like source) for us to figure out what's going on here.

-thegamefreak
I'm not mad, just a little crazy.

DarkNova - a little side project I run.
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post by tr1p1ea »

Just search for the appropriate labels. The problem is exactly what it says, they are duplicated. MiSSTeR must have defined these common equates itself, or is using them as part of the routine.

To fix the problem, either rename/remove the offending equates.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
Jim e
Calc King
Posts: 2457
Joined: Sun 26 Dec, 2004 5:27 am
Location: SXIOPO = Infinite lives for both players
Contact:

Post by Jim e »

mirage.inc line 0154: Duplicate label: (lcdinstport)
mirage.inc line 0155: Duplicate label: (lcddataport)
You must have or something else equated this before mirageos, check to see if some one added it to ti83plus.inc or something else.
MiSSTeR.asm line 0318: Duplicate label: (Sleft)
This is part ti83plus.inc, rename your label.
MiSSTeR.asm line 0318: label value misalligned. (Sleft)
MiSSTeR.asm line 0379: Range of relative branch exceeded.
You used sleft in a JR or DJNZ, so it can't jump to the address it thinks you want it to jump to.
Image
User avatar
cartj
New Member
Posts: 51
Joined: Tue 17 Oct, 2006 10:49 pm
Location: North West U.S.

Post by cartj »

Thanks guys, I was able to solve the problem. I'm still learning assembly and that helped a great deal.

EDIT: By the way speaking of searching for labels, I love the search feature in crimson editor and I was wondering if latenite has one.
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

Latenite can search with the current file, all opened files, or all files within the project directory, and will display the results in a search results box.
User avatar
cartj
New Member
Posts: 51
Joined: Tue 17 Oct, 2006 10:49 pm
Location: North West U.S.

Post by cartj »

That looks great. I only wish the current versions of latenite worked on my computer. ( I have windows 98se and the most current version that even starts up is version 0.0.2)
Post Reply