1 Replies - 377 Views - Last Post: 04 November 2017 - 09:45 AM

#1 elusiven  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 16-October 17

Reading out hex from disk sector

Posted 18 October 2017 - 12:49 PM

Hi there,

I'm trying to write a hex dump to get data off from disk sector.

This is my code:
https://gist.github....501a1b83eca46e3


Problem: Expected first output is something like E9 9D however, I get 9D E9 which is like the reverted..I'm not sure whats wrong.
Is This A Good Question/Topic? 0
  • +

Replies To: Reading out hex from disk sector

#2 turboscrew  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 152
  • View blog
  • Posts: 1,032
  • Joined: 03-April 12

Re: Reading out hex from disk sector

Posted 04 November 2017 - 09:45 AM

I'm not sure what's in the bx when the call is made, but it could be endianness problem?
The data is written on the disk byte by byte, and if you read the data as a word, you have the bytes swapped...

Just a guess...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1