Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: VESA Modes
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 11 Topic 4577 of 4729
Post > Topic >>

Re: VESA Modes

by Frank Kotler <spamtrap@[EMAIL PROTECTED] > Mar 19, 2008 at 08:46 AM

Alex Buell wrote:
> On Mon, 17 Mar 2008 23:40:04 GMT, I waved a wand and this message
> magically appears in front of Frank Kotler:
> 
> 
>>Yeah! Works great! I tried "mov ax, data", and as expected, it 
>>eliminates the need for "+ OFFSET". Was this "converted" from a .com 
>>file to .exe? In "-f obj" mode, Nasm knows the special symbol
>>"..start" for the entrypoint, and knows it needs to be "global". I
>>was also getting complaints from the linker about no stack segment...
> 
> 
> I finally figured out the cause of the OFFSETs, here's what I needed to
> do, was to add:
> 
> 	resb 	0x100 
> 
> to the obj file that contained the entry point. Removed all the
> OFFSETS. Problem solved! Thanks - I should have read section 7.2.2 of
> the NASM manual...

Ah! I didn't get that you were using "-f obj" but linking to .com. Yeah, 
that makes sense...

>>segment stack stack
>>resw 100h ; should be "enough for anybody" :)
>>
>>will shut *that* up.
>>
>>(the first "stack" is just a name, and could be anything - the second 
>>"stack" is crucial... so Nasm knows what to tell the linker)
> 
> 
> Good idea, I'll add that.

Well... that same section of the manual says you don't need to. Again, 
if you're linking to .com, it makes sense. Probably won't do any harm, 
but dos *knows* where the stack is in a .com file.

After reading Dirk's post about finding PSP, I thought "oh, oh, that fix 
I suggested *isn't* going to work", so I'm glad you figured this one 
out. As you can tell, I don't have much experience with assembling to 
..obj and linking to .com - I usually did one or the other (mostly .com).

>>I'm using David Lindauer's "val" modification "valx" as a linker (all 
>>I've currently got installed on the "real dos" drive). May be
>>different for wlink... That's open Watcom's linker? "Should" work the
>>same with all (16-bit OMF) linkers, but that's probably a fantasy...
> 
> 
> Yes, that's right, I'm using OpenWatcom's linker - it seems to do the
> job quite well. 

I haven't used the OpenWatcom tools much. They were well-liked by users 
when it was "commercial", and the "open" guys seem to be doing a good 
job keeping it up-to-date. An OpenWatcom compiler running on Linux makes 
the Windows binaries of Nasm, I believe...

>>Nice job, Alex. Definitely worth the reboot! :)
> 
> And there's a fresh copy of VMODE.ZIP uploaded. 

I'll grab it and reboot again... fairly soon...

Best,
Frank
 




 11 Posts in Topic:
VESA Modes
Alex Buell <spamtrap@  2008-03-17 20:17:16 
Re: VESA Modes
Frank Kotler <spamtra  2008-03-17 22:36:15 
Re: VESA Modes
Frank Kotler <spamtra  2008-03-17 23:40:04 
Re: VESA Modes
Terence <spamtrap@[EM  2008-03-17 15:28:04 
Re: VESA Modes
Dirk Wolfgang Glomp <  2008-03-18 07:43:50 
Re: VESA Modes
Alex Buell <spamtrap@  2008-03-18 18:09:56 
Re: VESA Modes
Dirk Wolfgang Glomp <  2008-03-19 00:14:01 
Re: VESA Modes
Alex Buell <spamtrap@  2008-03-18 14:39:02 
Re: VESA Modes
Frank Kotler <spamtra  2008-03-19 08:46:31 
Re: VESA Modes
Alex Buell <spamtrap@  2008-03-19 15:41:34 
Re: VESA Modes
dirk <spamtrap@[EMAIL   2008-03-19 12:50:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 15:21:35 CDT 2008.