Re: A86:ret


[Prev][Next][Index][Thread]

Re: A86:ret





Hmm... figuring out if a program will end or not... almost like the
Turning termination problem, eh? If you figure out a way to succesfully
figure out whether or not any given routine will terminate, please feel
free to tell me :)

--Brock

On Tue, 19 Oct 1999, David Phillips wrote:

> 
> Just like writing a "perfect" dissassembler would be impossible without
> running the code or incredible AI (as smart as a human), there would be no
> way to tell.  Have to run it and see if it crashes.  A program doesn't have
> to end with a physical ret, either -- it just has to return to the OS.  Like
> a <jp _clrLCD> would be the same as <call _clrLCD \ ret> but be a byte
> shorter.  Run it in VTI and see if it crashes.
> 
> What kind of people would do that, anyway?
> 
> > I learned the hardway that things don't work if you don't put a "ret" at
> the
> > end of a program, but does anyone know if there are any programs that can
> > tell me if an asm program doesn't have an ret? (I know a few people who do
> > this to existing programs to turn them into viruses.)
> 
> 
> 
> 



References: