flat assembler
Message board for the users of flat assembler.

Index > Heap > org 0xc5, c5h, 11000101b??

Author
Thread Post new topic Reply to topic
Coddy41



Joined: 18 Jan 2009
Posts: 384
Location: Ohio, USA
Coddy41
Why are there so many ways just to say, org 0xc5? I mean we have:
org, 0xc5, 0c5h, 11000101b..... just to say one simple thing, 197 in
decimal...

_________________
Want hosting for free for your asm project? You can PM me. (*.fasm4u.net)


Last edited by Coddy41 on 05 May 2009, 18:01; edited 1 time in total
Post 05 May 2009, 17:41
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
Coddy41 wrote:
Why are there so many ways just to say, org 0xc5? I mean we have:
org, 0xc5, c5h, 11000101b..... just to say one simple thing, 197 in
decimal...
c5h won't work!
Post 05 May 2009, 17:48
View user's profile Send private message Visit poster's website Reply with quote
Coddy41



Joined: 18 Jan 2009
Posts: 384
Location: Ohio, USA
Coddy41
why not not? I always see something like 100h Confused
Post 05 May 2009, 17:51
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
Works with a digit, but if you start with a letter (a-f) it looks like a label
Code:
db c5h
db 0c5h    
Post 05 May 2009, 17:54
View user's profile Send private message Visit poster's website Reply with quote
Coddy41



Joined: 18 Jan 2009
Posts: 384
Location: Ohio, USA
Coddy41
ohhh,
org 0c5h
OK, I get it... But I still dont see why we have 3 options.. Sometimes I think.. "witch one to use?" and
sometimes I will use all three and make it look all sloppy Confused
Post 05 May 2009, 18:00
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
It is just a number, like all other numbers in fasm. You can format them in different bases and styles.

BTW: also $c5, and all the above with capitals. Lots of options.
Post 05 May 2009, 18:05
View user's profile Send private message Visit poster's website Reply with quote
Coddy41



Joined: 18 Jan 2009
Posts: 384
Location: Ohio, USA
Coddy41
I like the $ one Very Happy
Post 05 May 2009, 18:14
View user's profile Send private message Visit poster's website Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2466
Location: Bucharest, Romania
Borsuc
I prefer the 0xC5 method myself. Cleanest IMO.
Post 05 May 2009, 21:40
View user's profile Send private message Reply with quote
Coddy41



Joined: 18 Jan 2009
Posts: 384
Location: Ohio, USA
Coddy41
I seem to see that one alot.
Post 05 May 2009, 22:25
View user's profile Send private message Visit poster's website Reply with quote
dosin



Joined: 24 Aug 2007
Posts: 337
dosin
There are a few options but when you use large numbers hex is best..

convert this to Binary:
0xFFFFFFFF

This to me looks cleaner - 0x########
than using the ########h

its less typing -and counting ones all the time would not be much fun...


Last edited by dosin on 06 May 2009, 00:57; edited 1 time in total
Post 06 May 2009, 00:43
View user's profile Send private message Reply with quote
Coddy41



Joined: 18 Jan 2009
Posts: 384
Location: Ohio, USA
Coddy41
11111111111111111111111111111111b
Post 06 May 2009, 00:50
View user's profile Send private message Visit poster's website 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 can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.