X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 841209 DOT 15975 DOT bm AT omp608 DOT mail DOT sp1 DOT yahoo DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.ar; s=s1024; t=1280367489; bh=AlpfSXjp+R249+Y8MgoL63BNYW0wEHaKyMM6WfAMGiA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=lM2V3d6RDL22KTieypkYepoi/1Dko9pKiu6RlWJVDep2BXHhmmIrWagrxWVOVwbeeIVOLkefOqY1RcDWCfoFtyFZrK4pZCft5T6qqUg56zflaPrUinXQ7RrvibMenYes7PHyaCcX50I6cgC1xCoCR9fBS3enRmF++r8t+VikQxw= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.ar; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yz8ygByziFmCQYRs3yggrzgCAPLpwVmdldERkJZzmlgr00nrRqadOrnleFlZJF16FOwxNYLG2UQvPc4YzKxOWcQkYeIhjZyKRfT9Anu1GDXvosyJ+QXnpBqbUPj4QWZN2MTecEVfnlnFo1noRSGHqW4VIbipffILbweDq82n+Zs=; Message-ID: <669073.52329.qm@web45104.mail.sp1.yahoo.com> X-YMail-OSG: VTBIdAkVM1nF2YeXF5Lug8x82wsmahSqxj9VDFWbU5clFlb 2eci0a4P36TkjpWMrOvU56ioE42W.lTkkwYoMHI4N_f5U2ts9B_Q17aIMraG vrowFbIV_pPSdaZ4tDQUhOXU37AhuWS3MAh4kqokPI6CXR2FBMO87jvAS6r8 klRUkQXjor3NC1mfGz4I2qdR9f8Ccfcm_1q_8jwGBPBZkHGwkprkwBstt6mc zr3Tqb.0J7BSf3oqEcD.UyatRliXGStQ- X-Mailer: YahooMailClassic/11.2.4 YahooMailWebService/0.8.105.277674 Date: Wed, 28 Jul 2010 18:38:09 -0700 (PDT) From: Pablo Marty Subject: ASSEMBLER QUESTION - VBE To: djgpp AT delorie DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Reply-To: djgpp AT delorie DOT com Hello guys and girls Hello Rugxulo Can anyone tell me if this function has an error?=20 the compiler says "Can't find a register in class DREG while reloading 'asm= '" and highlights the word 'asm' in the code i succeded with the linear framebuffer but my game still runs slow under DO= SBox, ...... now i'm trying the protected mode bank switching this is a part from what i stole from the DJGPP page about VBE 2.0 what i suposse -and hope- is that there is no error in the function and the= re is no assembler in my compiler Thank you ///////////////////////////////////////////////////////////// void set_vesa_bank_pm(int bank_number) { asm ( =09 " call *%0 " : /* no outputs */ : "r" (pm_bank_switcher), /* function pointer in any register */ =09"b" (0), /* set %ebx to zero */ =09"d" (bank_number) /* bank number in %edx */ : "%eax", /* clobber list (we have no way of */ =09"%ebx", /* knowing which registers the VESA */ =09"%ecx", /* code is going to change, so we */ =09"%edx", /* have to assume the worst and list */ =09"%esi", /* them all here) */ =09"%edi" ); } =0A=0A=0A