[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question on ProDOS SmartPort drive remapping
On Dec 6, 11:57 pm, "Peter Watson" <paw77@N_O_hotmail_S_P_A_M.com>
wrote:
> The problem was that also by convention a program's return code should be
> loaded into register 15, but in IEFBR14 it still contained the value on
> entry, which just happens to be the program's entry point address! So the
> do-nothing program was always reported as ending with an non-zero error if
> anything checked the return code! (The fix doubled the size of the program
> to four bytes! Register 15 was cleared before returning.)
Just go to show that the old adage "The number of bugs is proportional
to the number of lines of code" holds true even when LOC==1
:-)