delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/26/08:47:05

From: apester000 AT aol DOT com (Apester000)
Newsgroups: comp.os.msdos.djgpp
Subject: Inline asm Mode 13h help
Date: 26 Dec 1997 04:35:46 GMT
Lines: 21
Message-ID: <19971226043501.XAA05225@ladder01.news.aol.com>
NNTP-Posting-Host: ladder01.news.aol.com
Organization: AOL http://www.aol.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello, I'm having trouble getting into mode 13, using the inline assembler in
djgpp. I've read the faq, and looked through the past 800 articles posted to
this group, but no luck.  I'm assuming the problem lies in my interrupt call
(probably something to do with protected mode) but I'm not sure.  Can you even
use the INT opcode with at&t syntax?  I know that you can get into mode 13
using __dpmi_int, but I'd rather learn how to do it in asm.  Here's my
code...am I doing something blatantly wrong?

        __asm__("
          pushb %eax\n
          movb 0x13, %eax\n
          int 0x10
          popb %eax
          ");

Anyhelp on this would be much appreciated.


Later-
Brandon Tallent
http://rcip.com/artwork     <--------Qbasic RPGs

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019