Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 17th, 2006, 4:30 PM   #1
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 313
Rep Power: 4 Klarre is on a distinguished road
dgroup undefined using /coff

I am not sure if I have gotten it correct. But first of all: is dgroup and @data doing the same thing? Second of all: do they keep the adress to the data segment, or what are they?

I have a short piece of code where the first line in the entry function is
mov ax, dgroup
This assembles fine when using this command line
ml.exe file.asm
But when I try to assemble the file to coff object file format, I got an error that tells me that "dgroup is an undefined symbol".
ml.exe /coff file.asm
So my question is: why do I only recieve the error using coff? And is there another way to get the value to my ax register, or alternatively define dgroup?

Thanks for your time!

/Klarre
__________________
http://www.klarre.se
Klarre is offline   Reply With Quote
Old Aug 17th, 2006, 6:53 PM   #2
lostcauz
Hobbyist Programmer
 
Join Date: Nov 2004
Location: 1691 miles East of L.A.
Posts: 159
Rep Power: 5 lostcauz is on a distinguished road
coff doesn't handle 16 bit code, nor do I
__________________
-- lostcauz

Stepped in what?...
Behind whose barn?...
I didn't even know they had a cow!
lostcauz is offline   Reply With Quote
Old Aug 17th, 2006, 8:21 PM   #3
Edgar
Programmer
 
Edgar's Avatar
 
Join Date: May 2006
Location: Bathroom
Posts: 43
Rep Power: 0 Edgar is on a distinguished road
Quote:
Originally Posted by Klarre
I am not sure if I have gotten it correct. But first of all: is dgroup and @data doing the same thing? Second of all: do they keep the adress to the data segment, or what are they?
Yes try to use @data, but you have to move @data to ds so the following
segment shoud resolve your problem:

mov ax,@data
mov ds,ax ;because you can't move ax direct to your data segment.
Edgar is offline   Reply With Quote
Old Aug 18th, 2006, 8:53 AM   #4
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 313
Rep Power: 4 Klarre is on a distinguished road
Quote:
Originally Posted by Edgar
Yes try to use @data, but you have to move @data to ds so the following
segment shoud resolve your problem:

mov ax,@data
mov ds,ax ;because you can't move ax direct to your data segment.
I does'nt matter which one I use either @data nor dgroup. They are both undefined...
__________________
http://www.klarre.se
Klarre is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Call to undefined function mysql_connect() billpull PHP 11 Jul 13th, 2006 3:45 PM
Is this undefined behaviour? InfoGeek C++ 26 Jun 27th, 2006 10:17 AM
undefined reference J_I_M_B_O C 27 May 31st, 2006 5:59 PM
C++ OWL What am I doing wrong Vagabond C++ 7 Mar 24th, 2006 6:31 PM
two errors, need help, openGL code infernosnow C++ 3 Feb 16th, 2005 11:14 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:50 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC