Mail Archives: djgpp/2006/02/15/08:32:34
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f
|
X-Trace-PostClient-IP: | 68.147.232.190
|
From: | Brian Inglis <Brian DOT Inglis AT SystematicSW DOT Invalid>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Converting Intel code
|
Organization: | Systematic Software
|
Message-ID: | <vf66v19d33n0a30eca85q5oth66i5hrq0l@4ax.com>
|
References: | <002d01c62031$9fc98bb0$2432a8c0 AT dcueva> <43d5135f_1 AT x-privat DOT org>
|
X-Newsreader: | Forte Agent 1.93/32.576 English (American)
|
MIME-Version: | 1.0
|
Lines: | 44
|
Date: | Wed, 15 Feb 2006 13:27:16 GMT
|
NNTP-Posting-Host: | 64.59.135.176
|
X-Complaints-To: | abuse AT shaw DOT ca
|
X-Trace: | pd7tw1no 1140010036 64.59.135.176 (Wed, 15 Feb 2006 06:27:16 MST)
|
NNTP-Posting-Date: | Wed, 15 Feb 2006 06:27:16 MST
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
On 23 Jan 2006 18:33:21 +0100 in comp.os.msdos.djgpp, "Cristiano"
<cristiano DOT pi AT NSquipo DOT it> wrote:
>Diego Cueva wrote:
>> May be this help you:
>>
>> int main(){
>> int val;
>> asm(
>> "cli\n\t"
>> "xorb %%al,%%al\n\t"
>> "outb %%al,$0x43\n\t"
>> "inb $0x40,%%al\n\t"
>> "movb %%al,%%bl\n\t"
>> "inb $0x40,%%al\n\t"
>> "movb %%al,%%bh\n\t"
>> "sti": "=b"(val): );
>
>It works! :-) Thank you.
>
>> Please review :
>>
>> Brennan's Guide to Inline Assembly
>> by Brennan "Bas" Underwood.
>
>I read that guide, but it's not clear to me (and to my English :-) , I need
>a very basic guide).
>I found a similar guide:
>http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html
>which seems a bit clearer to me. But do you know any good guide?
gas was originally written for the VAX, so any old VAX assembler
manual or book would give you the basics on what instructions and
operands look like.
The official DEC/Digital/Compaq/HP VAX MACRO and Instruction Set
Reference Manual AA--PS6GD--TE is available online at:
http://h71000.www7.hp.com/doc/73final/4515/4515pro.html
--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
fake address use address above to reply
- Raw text -