Page 1 of 1

Help to translate

Posted: Mon Aug 06, 2012 5:25 am
by gil0mendes
Hello,
Can they translate these three lines of code to NASM for GAS :?:

Code: Select all

mov [gBIOSDriveNumber], dl

(...)

	ABSOLUTE kReadBuffer + kSectorBytes

gBIOSDriveNumber resw 1
Thanks :)

Re: Help to translate

Posted: Mon Aug 06, 2012 5:34 am
by thepowersgang

Re: Help to translate

Posted: Tue Aug 07, 2012 2:25 pm
by Tosi
Read the GAS manual or just google AT&T syntax, it's not that hard.

Re: Help to translate

Posted: Thu Aug 09, 2012 6:10 am
by halofreak1990
Or, alternatively, you could precede the ASM block with

Code: Select all

.intel_syntax noprefix

Re: Help to translate

Posted: Fri Aug 10, 2012 4:15 am
by Antti

Re: Help to translate

Posted: Sat Aug 11, 2012 5:41 am
by gil0mendes
Thank you all