Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TASM bugs?

Status
Not open for further replies.

straiph

Programmer
Mar 4, 2002
193
0
0
GB
Hi,

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

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!
 
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."
 
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!
 
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."
 
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!"
 
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!"
 
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!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top