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

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