X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Message-ID: Content-Type: multipart/alternative; boundary="_56332708-d120-406d-b0fa-7a377a87c394_" X-Originating-IP: [74.59.217.149] From: IcEonFirE To: 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
Hi
 =3B
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 =3B'int'
here's my code if =3Bit could help
 =3B
.section .text
.global _main
.code16

 =3B
_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
 =3B
movw $35=2C%cx
movw 0x0007=2C%bx
movw $bootmsg=2C%bp
movw $1301=2C%ax
int 0x10


 =3B
.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
 =3B
Any help please ?
Thanks
 =3B
 =3B
 =3B
cApTaiN_FaNtAsTiK
= --_56332708-d120-406d-b0fa-7a377a87c394_--