×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

TASM bugs?

TASM bugs?

TASM bugs?

(OP)
Hi,

TASM v1.1? (definately not higher than 3 )

I am getting an 'Forward reference needs override' error when compiling in 32bit mode but it is ok in 16bit mode.

I have something like 'fword ptr' before the pointer label.

I wonder if this is a known bug and if anyone (AmkG) could point me in the right direction. Failing that I am open to suggestions on downloadable free assemblers! (cant pay for anything that would be a sin)

0000:0000:0000:0000h
The people who have nothing to say and say it too loud have little knowledge, It's the quiet ones you need to worry about!

RE: TASM bugs?

What's the line that gives the problem?  What's the label.

As for free assemblers, try doing net searches on:
NASM
SpASM

I think there's a FAQ here on free assemblers but I think it's dated... you might still find something there though.

"Information has a tendency to be free.  Which means someone will always tell you something you don't want to know."

RE: TASM bugs?

(OP)
I havent got the details in front of me here but of the top of my head it is something like:

flatptr equ 0h (arb value)

blah
blah

lgdt fword ptr gdt+flatptr

blah
blah

gdt dw 0h (arb value)
    dd 0h (arb value)

it works fine in 16bit but causes an error in 32bit mode.
i have tried:

lgdt fword ptr cs:gdt+flatptr

but as lgdt's displacement is a linear address (doesnt use selector) this doesnt have an affect.

0000:0000:0000:0000h
The people who have nothing to say and say it too loud have little knowledge, It's the quiet ones you need to worry about!

RE: TASM bugs?

Hmmm... aren't you supposed to load the GDT before entering PM?  And isn't it impossible to enter 32-bit mode without entering PM first?

"Information has a tendency to be free.  Which means someone will always tell you something you don't want to know."

RE: TASM bugs?

(OP)
It is still the same command and should compile if selected in 16bit or 32bit!

"People who have nothing to say, say it too loud and have little knowledge. It's the quiet ones you need to worry about!"

RE: TASM bugs?

(OP)
OK... so I'm mode switching the GDT and I would like to do it in 32bit mode but TASM throws up this stupid error. I woke up one morning and asked myself 'What shall I do today?', so I looked around and I didnt see anyone rushing about saying 'Ooo, got to modeswitch that GDT!' so I thought it was a darn fine idea! It works great in 16bit mode, I use twice as much memory up and everything.


 "People who have nothing to say, say it too loud and have little knowledge. It's the quiet ones you need to worry about!"

RE: TASM bugs?

(OP)
I have move the data references infront on the code within the assembly!

"People who have nothing to say, say it too loud and have little knowledge. It's the quiet ones you need to worry about!"

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close