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 8 of 11 Topic 4577 of 4729
Post > Topic >>

Re: VESA Modes

by Alex Buell <spamtrap@[EMAIL PROTECTED] > Mar 18, 2008 at 02:39 PM

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...
 
> 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.

> 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. 
 
> Nice job, Alex. Definitely worth the reboot! :)

And there's a fresh copy of VMODE.ZIP uploaded. 
-- 
http://www.munted.org.uk

Fearsome grindings.
 




 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 Sat Jul 26 2:12:31 CDT 2008.