home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / dos / extra / docs / maillist / text / archive.95 / text0524.txt < prev    next >
Encoding:
Text File  |  1996-03-31  |  1.6 KB  |  50 lines

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