flat assembler
Message board for the users of flat assembler.

Index > Main > Suggestion: Instant Constant

Author
Thread Post new topic Reply to topic
Teehee



Joined: 05 Aug 2009
Posts: 568
Location: Brazil
Teehee
Well, that is how i called it.. hehe

Code:
; this:
mov eax, GDT_CS_SEL = 0x08
;instead of:
mov eax, 0x08 ; 0x08 = gdt cs sel    


Razz

_________________
Sorry if bad english.
Post 22 Feb 2011, 13:15
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel
Does it provide any advantage?

I like to have all the equs at the top of the source code (for obvious reasons) or in a separate file if the project is really big.

Otherwise, I prefer the more verbose "method":
Code:
mov eax,0x08        ; GDT code segment selector
    
Post 22 Feb 2011, 14:07
View user's profile Send private message Reply with quote
Teehee



Joined: 05 Aug 2009
Posts: 568
Location: Brazil
Teehee
i agree with you Smile
i was just crazy. sorry lol Razz
Post 22 Feb 2011, 15:36
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.