Quote:
Originally Posted by Wepl
There should be a 'moveq #-1,d0' before the rts at the start.
With that AmigaDOS will tell 'not excutable' when started from the CLI.
|
The result "Not Executable" is caused when the protection flag "E" is not set. It will also be displayed when my test.library is executed from a shell.
If you set the protection flag "E" then executing a library with the return code -1 will fail as "Unknown Instruction" and the shell returns RC=10. My test.library does not produce any error messages and the RC might be a random value.
@StingRay
Ok, in your eyes it's bad coding style, but I left this instruction out by design. That's my style, basta.