home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.cpm
- Path: sparky!uunet!cs.utexas.edu!torn!utzoo!telly!druid!darcy
- From: darcy@druid.uucp (D'Arcy J.M. Cain)
- Subject: Re: 8080/8085/Z80 Code Identifier
- Message-ID: <1993Jan23.042048.11708@druid.uucp>
- Date: Sat, 23 Jan 1993 04:20:48 GMT
- References: <2411@sousa.tay.dec.com>
- Organization: D'Arcy Cain Consulting
- Lines: 28
-
- secrist@msdsws.enet.dec.com (Strong datatypes for weak minds.) writes:
- >Not that it'd be hard to write, but does anybody have some code you
- >can feed a random .COM file to and have it tell you whether or not it's
- >pure 8080, 8085, or Z80 code ?
-
- It may not be quite as simple as you think. How do you know if you are
- looking at code, data or random garbage? What you want is a superset
- of a disassembler and those generally need a lot of user interventioon.
-
- Consider the following: (This is based on actual code)
-
- ...
- call print
- db 'Hello, world', CR, LF, 0
- mov a, b
- ...
-
- The print function would pull the string off the stack, print it and adjust
- the stack pointer before returning. How would you determine the start of
- data there and if you did how would you know where it ended? If you are
- lucky someone has already written what you want. If not, this is not a
- knock-off project by any means.
-
- --
- D'Arcy J.M. Cain (darcy@druid.com) |
- D'Arcy Cain Consulting | There's no government
- Toronto, Ontario, Canada | like no government!
- +1 416 424 2871 DoD#0082 |
-