home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / dos / extra / docs / maillist / text / archive.95 / text0521.txt < prev    next >
Encoding:
Internet Message Format  |  1996-03-31  |  2.0 KB

  1. Received: from lab11.cs.purdue.edu (huntercr@lab11.cs.purdue.edu [128.10.11.111])
  2.     by arthur.cs.purdue.edu (8.6.10/PURDUE_CS-1.3) with ESMTP
  3.     id <KAA03070>; Sat, 22 Apr 1995 10:18:59 -0500
  4. Received: (huntercr@localhost)
  5.     by lab11.cs.purdue.edu (8.6.10/PURDUE_CS-1.3)
  6.     id <KAA02543>; Sat, 22 Apr 1995 10:18:56 -0500
  7. From: huntercr@cs.purdue.edu (Charles Hunter)
  8. Message-Id: <199504221518.KAA02543@lab11.cs.purdue.edu>
  9. Subject: Little endian to big endian and vice versa...
  10. To: executor@nacm.com (Executor mailing list),
  11.         DJGPP@sun.soe.clarkson.edu (djgpp mailing list)
  12. Date: Sat, 22 Apr 1995 10:18:55 -0500 (EST)
  13. Cc: huntercr@cs.purdue.edu (Charles Randolph Hunter)
  14. X-Mailer: ELM [version 2.4 PL24alpha3]
  15. MIME-Version: 1.0
  16. Content-Type: text/plain; charset=US-ASCII
  17. Content-Transfer-Encoding: 7bit
  18. Content-Length: 1102      
  19. Sender: owner-executor@nacm.com
  20. Precedence: bulk
  21.  
  22.  
  23. Hi gang,
  24.  
  25. I know that this is inappropriate to post on either of these lists, but
  26. I hear it talked about so often that I thought I might ask here.
  27.  
  28. I am working on a project that will convert simple binaries across
  29. two platforms and or back again. This is similar to a program 
  30. I picked up called, "86to68", which converts 8086 asm to 68000 asm.
  31. I am attempting to do this from the assembled [binary ] 
  32. level. Sort of a re-assembler. Things are working out well, but I have
  33. been ignoring, until now, the endian difference.
  34.  
  35. My question is: What patterns should the program look for? What kind
  36. of strategy should the program use to check?
  37. I'll admit, I am a little  ignorant on the subject. 
  38. Can this be swapped statically at all? 
  39. If so, Should I execute the program internally and tag all references to 
  40. 16+bit  data?  
  41. If not... am I going to have to add a swap routine to every
  42. program that is reassembled?  I'm confused. 8-)
  43.  
  44. Right now, I am only implementing a 2 pass dissasemble that 
  45. does nothing with what appears to be dataspace.
  46.  
  47.  
  48. Mat? Cliff? DJ? anyone???
  49.  
  50.         Help! 
  51.  
  52.             --Charles Hunter
  53.  
  54.  
  55.  
  56.  
  57.