[Coco] NitrOS-9 boot module common code

Steve Bjork 6809er at srbsoftware.com
Tue May 11 22:36:18 EDT 2010


Roger,

The LD and ST do NOT clear or set the Carry Flag.  This is so you can do 
Multi-Digit math without need to save the carry flag while loading and 
storing numbers.

Steve (Zaxxon) Bjork

On 5/11/2010 6:00 PM, Roger Taylor wrote:
> Here's a snippet from the boot_common.asm file that caught my eye.
> Back2Krn
>     lbsr    HWTerm     call HW termination routine
>     ldx    blockimg,u    pointer to start of os9boot in memory
>     clrb    clear carry
>     ldd    bootsize,u
>
> Doesn't ldd bootsize,u set the CPU Carry?  Is clrb really needed?  
> Heck, every byte counts since the limit is $1D0 bytes.




More information about the Coco mailing list