0

Hi guys I got a question about how to reversethe little endian. My questions is how do I do it. Say the user inputs hex 4423, how do I get it to reverse in the program to read as 2344? and help would be greatly appreciated. I need this because I'm doing a FAT16 decode program to display the date.

2
Contributors
2
Replies
4
Views
4 Years
Discussion Span
Last Post by Sasquadge
0

Assume AX = 4423H

1: Move AX -> CX
2: Shift AH -> AL
3: Shift CL -> CH
4: Move CH -> AH

BSWAP assuming your using Intel converts edian values, but what you require isn't exactly an edian conversion.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.