View Single Post
Old 24 October 2017, 16:08   #24
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,378
Quote:
Originally Posted by Wepl View Post
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.

Last edited by PeterK; 24 October 2017 at 16:15.
PeterK is offline  
 
Page generated in 0.07817 seconds with 11 queries