delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/09/21/19:21:05

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Message-ID: <BAY106-W84F43E728C44F8171BB5389480@phx.gbl>
X-Originating-IP: [74.59.217.149]
From: IcEonFirE <captain_fantastik AT hotmail DOT com>
To: <djgpp AT delorie DOT com>
Subject: Calling INT 0x10
Date: Sun, 21 Sep 2008 19:08:21 -0400
Importance: Normal
MIME-Version: 1.0
X-OriginalArrivalTime: 21 Sep 2008 23:08:22.0537 (UTC) FILETIME=[F1B32790:01C91C3E]
Reply-To: djgpp AT delorie DOT com

--_56332708-d120-406d-b0fa-7a377a87c394_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Hi
=20
I tried to compile my bootsect.s file ( Actually I am using DJGPP under MS-=
DOS 6.22) but compilation fails on lines where I called INT 0x10: Suffix or=
 operands invalid for 'int'
here's my code if it could help
=20
.section .text
.global _main
.code16

=20
_main: movw $BOOTSEG=2C%ax
movw %ax=2C%ds
movw $INITSEG=2C%ax
movw %ax=2C%es
subw %si=2C%si
subw %di=2C%di
movw %ax=2C%ss
movw $STACKPTR=2C%ax
movw %ax=2C%sp
mov $0x03=2C%ah
xorb %bh=2C%bh
int 0x10
=20
movw $35=2C%cx
movw 0x0007=2C%bx
movw $bootmsg=2C%bp
movw $1301=2C%ax
int 0x10


=20
.section .data
.set BOOTSEG=2C0x7C0
.set INITSEG=2C0x900
.set STACKPTR=2C0x0400
bootmsg: .byte 13=2C10
.ascii "Booting...Loading kernel..."
.byte 13=2C10=2C13=2C10
head: .byte 0
track: .byte 0
cyln: .byte 0
.org 0x1fe=2C0x90
.word 0xaa55
=20
Any help please ?
Thanks
=20
=20
 cApTaiN_FaNtAsTiK=

--_56332708-d120-406d-b0fa-7a377a87c394_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style>
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt=3B
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class=3D'hmmessage'>
<BR>Hi<BR>
&nbsp=3B<BR>
I tried to compile my bootsect.s file ( Actually I am using DJGPP under MS-=
DOS 6.22) but compilation fails on lines where I called INT 0x10: Suffix or=
 operands invalid for&nbsp=3B'int'<BR>
here's my code if&nbsp=3Bit could help<BR>
&nbsp=3B<BR><SPAN lang=3DEN>
.section .text<BR>
.global _main<BR>
.code16<BR>
<BR>
&nbsp=3B<BR>
_main: movw $BOOTSEG=2C%ax<BR>
movw %ax=2C%ds<BR>
movw $INITSEG=2C%ax<BR>
movw %ax=2C%es<BR>
subw %si=2C%si<BR>
subw %di=2C%di<BR>
movw %ax=2C%ss<BR>
movw $STACKPTR=2C%ax<BR>
movw %ax=2C%sp<BR>
mov $0x03=2C%ah<BR>
xorb %bh=2C%bh<BR>
int 0x10<BR>
&nbsp=3B<BR>
movw $35=2C%cx<BR>
movw 0x0007=2C%bx<BR>
movw $bootmsg=2C%bp<BR>
movw $1301=2C%ax<BR>
int 0x10<BR>
<BR>
<BR>
&nbsp=3B<BR>
.section .data<BR>
.set BOOTSEG=2C0x7C0<BR>
.set INITSEG=2C0x900<BR>
.set STACKPTR=2C0x0400<BR>
bootmsg: .byte 13=2C10<BR>
.ascii "Booting...Loading kernel..."<BR>
.byte 13=2C10=2C13=2C10<BR>
head: .byte 0<BR>
track: .byte 0<BR>
cyln: .byte 0<BR>
.org 0x1fe=2C0x90<BR>
.word 0xaa55<BR>
&nbsp=3B<BR>
Any help please ?<BR>
Thanks<BR></SPAN>
&nbsp=3B<BR>
&nbsp=3B<BR>
&nbsp=3B<BR>cApTaiN_FaNtAsTiK<BR></body>
</html>=

--_56332708-d120-406d-b0fa-7a377a87c394_--

- Raw text -


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