| delorie.com/archives/browse.cgi | search |
| From: | "Stefan Viljoen" <Stefan_Viljoen AT excite DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: assembler probs |
| Date: | Fri, 23 Mar 2001 19:44:15 +0200 |
| Organization: | The South African Internet Exchange |
| Lines: | 31 |
| Message-ID: | <99g2bn$dtt$4@ctb-nnrp2.saix.net> |
| References: | <99dc06$p3b$1 AT uranium DOT btinternet DOT com> |
| NNTP-Posting-Host: | pc53-01-p206.nt.saix.net |
| X-Trace: | ctb-nnrp2.saix.net 985369783 14269 155.239.176.206 (23 Mar 2001 17:49:43 GMT) |
| X-Complaints-To: | abuse AT saix DOT net |
| NNTP-Posting-Date: | 23 Mar 2001 17:49:43 GMT |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Michael Duxbury <M DOT R DOT Duxbury AT btinternet DOT com> wrote in message
news:99dc06$p3b$1 AT uranium DOT btinternet DOT com...
> I am trying to compile this but get a slight problem with the hello: db
> void drawline(int x1,int x2, int y, char color)
> {
> asm (" movb %ax , 0xa000");
> }
>
> Anyone help me out please?
If you want to use the above to access video RAM, it won't work (I think!)
What you need is a
descriptor to video RAM - you cannot use segment addresses in a segment
register to attempt to access video RAM like you can do in real mode. See
http://home.intekom.com/rylan/ for some simple assembler examples (using
NASM) of how to access 320x200x256 VGA at the VGA video segment under DJGPP
+ NASM. (NASM is a freeware assembler that accepts intel syntax assembly and
outputs DJGPP compatible COFF format object files that DJGPP can link and
use).
Regards,
Stefan Viljoen
F/EMS Dispatcher
Potchefstroom F/EMS
South Africa
http://home.intekom.com/rylan/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |