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: 570
Location: Brazil
Teehee 22 Feb 2011, 13:15
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 22 Feb 2011, 14:07
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: 570
Location: Brazil
Teehee 22 Feb 2011, 15:36
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.