asm {
mov ax,a
xchg ah,al
}
Printable View
asm {
mov ax,a
xchg ah,al
}
int a=12345; // dummy value.
int b= a & 0xffff;
b<<=16;
int c= a & 0xffff0000;
c>>=16;
a=b|c;
not exact but close enough.
erm... isn't that a little long-winded?? ax is 16 bits right??
U.Code:short ax = a;
ax = (ax >> 8) | (ax << 8);
yes you are right ax is 16 bits wide. Dont know why i thought it was 32 lol
thx guys