flat assembler
Message board for the users of flat assembler.
Index
> Main > What does 0x123 mean? |
Author |
|
Matrix 23 Nov 2004, 17:48
aren't these in Flat Assembler Documentations?
C typed = Pascal = ASM standard 0x123 = $123 = 0123h 0123o is octal |
|||
23 Nov 2004, 17:48 |
|
Kristian_ 24 Dec 2004, 15:23
Thanx, but forexample if I have 0xA3, then it is in decimal 13?, because A = 10? And what does 0x mean???
|
|||
24 Dec 2004, 15:23 |
|
vbVeryBeginner 24 Dec 2004, 15:58
0xA3
= (3 x 16^0) + (A x 16^1) = (3 x 1) + (10 x 16) = 163 0xA34 = (4 x 16^0) + (3 x 16^1) + (A x 16^2) = (4 x 1) + (3 x 16) + (10 x 256) = 4 + 48 + 2560 = 2612 "0x" is used as a symbol to treat the particular number as hexadecimal which also mean, based 16 number |
|||
24 Dec 2004, 15:58 |
|
Kristian_ 25 Dec 2004, 20:08
Thank you!
But does 0x13 = 19? (3x16^0) + (1x16^1) = (3x1)+(1x16) = 19 Is this true? |
|||
25 Dec 2004, 20:08 |
|
MCD 25 Dec 2004, 20:11
yes
|
|||
25 Dec 2004, 20:11 |
|
gumletis 29 Dec 2004, 10:26
say nothing... www.asciitable.com...
|
|||
29 Dec 2004, 10:26 |
|
Diode 05 Jan 2005, 05:24
Kristian, if this helps you,
0xA3 is hexadecimal for A = 1010 3 = 0011 1010 0011, appended = 10100011 (From the left) First 1 = 128, second 1 = 32, third 1 = 2, and last 1 = 1 So, add them 128 32 2 1 = 163 - Diode _________________ Mac for productivity. Unix for development. Windows for solitaire. |
|||
05 Jan 2005, 05:24 |
|
vid 05 Jan 2005, 17:20
try this, it's from my tutorial, you may find something there
http://decard.net/?body=tajga&chapter=chap06 |
|||
05 Jan 2005, 17:20 |
|
THEWizardGenius 19 Jan 2005, 01:29
Yeah, but why convert to binary when you can use
(10 * 16^1) + (3 * 16^0) ;10- that's for the A part of A3 so easily? |
|||
19 Jan 2005, 01:29 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.