Hi, I have problems with the syntax used by gcc compiler in asm blocks (It makes me confused -.-, I have already tried but there are mistakes in my code). Can anyone help me writing the functions for insb, insw, outsb and outsw functions?
An other question, how does AAA instruction work? I mean if I want to emulate it with simpler instructions what are the steps?
Thank you
ASM code with AT/T syntax
Re: ASM code with AT/T syntax
Just a hint: If you can't get used to it at all, you may want to try -masm=intel as a command line option, which tells gcc (and gas) to use the Intel syntax.
Re: ASM code with AT/T syntax
I know but I'm not sure that the GCC based compiler I'm using (DJGPP) supports it. I will check tomorrow
Re: ASM code with AT/T syntax
Have you tried the pseudo-code from the Intel manual?Karlosoft wrote:An other question, how does AAA instruction work? I mean if I want to emulate it with simpler instructions what are the steps?
Re: ASM code with AT/T syntax
Thanks, Intel has answers for everything XD