Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Assembly Language data?
New Posts  All Forums:Forum Nav:

Assembly Language data?

post #1 of 7
Thread Starter 
Hello, I am doing PC to PC communication using C programming.
I want to know the meaning of this data
in.h.ah=00;
in.h.al=0x0a7?
what is 0x0a7?
why is the 0x before 0a7.
If we write 0x01 then what is it? is it 01h?
Why cant we only write it as 01h?

please anyone can do a quick reply to me?
post #2 of 7
0x stands for hexadecimal
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II x4 955 ASUS Crosshair 3 EVGA 465GTX 1GB 8GB DDR3 1600mhz GSkill/ADATA 
Hard DriveOSMonitorKeyboard
40GB Intel SSD 1TB Western Digital Black Edition Windows 7 x64 Pro Dual 21.5 Sceptre Saitek Eclipse 
PowerCaseMouseMouse Pad
850watt Silverstone Element Coolermaster Haf 932 Razer Lachesis Razer Vespula 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II x4 955 ASUS Crosshair 3 EVGA 465GTX 1GB 8GB DDR3 1600mhz GSkill/ADATA 
Hard DriveOSMonitorKeyboard
40GB Intel SSD 1TB Western Digital Black Edition Windows 7 x64 Pro Dual 21.5 Sceptre Saitek Eclipse 
PowerCaseMouseMouse Pad
850watt Silverstone Element Coolermaster Haf 932 Razer Lachesis Razer Vespula 
  hide details  
Reply
post #3 of 7
Thread Starter 
Okay thanks for the quick reply.
So abH will be written as 0xab nice!
post #4 of 7
Yep, there's also other formats such as binary and octal as well (and other modifiers for unsigned and longs). http://msdn.microsoft.com/en-us/libr...(v=vs.80).aspx
Mr Jiggawatts
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T@4GHz@1.46V Ultra LLC/3GHz CPU-NB@1.33V Asus Crosshair V Formula MSI GTX560-TI 1GB TF II Patriot Viper Xtreme 1600 8GB (2x4GB) 8-9-8-24 
Hard DriveOSMonitorKeyboard
Intel X25-V 40GB, Kingston SSDNow 64GB Windows 7 Ultimate LG Flatron W2353V Razer Arctosa 
PowerCaseMouse
Antec HCG-900W Antec Lanboy Air Yellow Razer Abbysus 
  hide details  
Reply
Mr Jiggawatts
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T@4GHz@1.46V Ultra LLC/3GHz CPU-NB@1.33V Asus Crosshair V Formula MSI GTX560-TI 1GB TF II Patriot Viper Xtreme 1600 8GB (2x4GB) 8-9-8-24 
Hard DriveOSMonitorKeyboard
Intel X25-V 40GB, Kingston SSDNow 64GB Windows 7 Ultimate LG Flatron W2353V Razer Arctosa 
PowerCaseMouse
Antec HCG-900W Antec Lanboy Air Yellow Razer Abbysus 
  hide details  
Reply
post #5 of 7
Yes, 0x01 would be 01h. Haven't seen 0x style before but i already don't like it lol.
Maybe someone a stronger understanding of ASM can explain it better, I'm still learning ASM.
post #6 of 7
Quote:
Originally Posted by Madog View Post
Yes, 0x01 would be 01h. Haven't seen 0x style before but i already don't like it lol.
Maybe someone a stronger understanding of ASM can explain it better, I'm still learning ASM.
0x is the prefix used in C (C++) languages and *nix enviroments so it's been around pretty much forever. (check out my username too lol )

The h /suffix/ is used in intel assembly languages.... knew something was fishy when I was reading my own post.

(edited: oops, not prefix, but suffix regarding 'h')
Edited by 0x62 0x70 - 11/4/11 at 8:02pm
Mr Jiggawatts
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T@4GHz@1.46V Ultra LLC/3GHz CPU-NB@1.33V Asus Crosshair V Formula MSI GTX560-TI 1GB TF II Patriot Viper Xtreme 1600 8GB (2x4GB) 8-9-8-24 
Hard DriveOSMonitorKeyboard
Intel X25-V 40GB, Kingston SSDNow 64GB Windows 7 Ultimate LG Flatron W2353V Razer Arctosa 
PowerCaseMouse
Antec HCG-900W Antec Lanboy Air Yellow Razer Abbysus 
  hide details  
Reply
Mr Jiggawatts
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T@4GHz@1.46V Ultra LLC/3GHz CPU-NB@1.33V Asus Crosshair V Formula MSI GTX560-TI 1GB TF II Patriot Viper Xtreme 1600 8GB (2x4GB) 8-9-8-24 
Hard DriveOSMonitorKeyboard
Intel X25-V 40GB, Kingston SSDNow 64GB Windows 7 Ultimate LG Flatron W2353V Razer Arctosa 
PowerCaseMouse
Antec HCG-900W Antec Lanboy Air Yellow Razer Abbysus 
  hide details  
Reply
post #7 of 7
Thanks for explaining that, would have asked my professor but the guy barely understands the english language lol
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Assembly Language data?