Help to translate

Programming, for all ages and all languages.
Post Reply
gil0mendes
Posts: 5
Joined: Mon Aug 06, 2012 3:23 am

Help to translate

Post 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 :)
User avatar
thepowersgang
Member
Member
Posts: 734
Joined: Tue Dec 25, 2007 6:03 am
Libera.chat IRC: thePowersGang
Location: Perth, Western Australia
Contact:

Re: Help to translate

Post by thepowersgang »

Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
Tosi
Member
Member
Posts: 255
Joined: Tue Jun 15, 2010 9:27 am
Location: Flyover State, United States
Contact:

Re: Help to translate

Post by Tosi »

Read the GAS manual or just google AT&T syntax, it's not that hard.
halofreak1990
Member
Member
Posts: 41
Joined: Thu Aug 09, 2012 5:10 am

Re: Help to translate

Post by halofreak1990 »

Or, alternatively, you could precede the ASM block with

Code: Select all

.intel_syntax noprefix
<PixelToast> but i cant mouse

Porting is good if you want to port, not if you want maximum quality. -- sortie
Antti
Member
Member
Posts: 923
Joined: Thu Jul 05, 2012 5:12 am
Location: Finland

Re: Help to translate

Post by Antti »

gil0mendes
Posts: 5
Joined: Mon Aug 06, 2012 3:23 am

Re: Help to translate

Post by gil0mendes »

Thank you all
Post Reply