<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sun, 11 Jan 2009 14:09:01 +0000 (GMT)
From   : info@... (Sprow)
Subject: My sideways ram utils

In article <090111135501@...>,
   Jonathan Graham Harston <jgh@...> wrote:
> --> On entry to a ROM, X always holds the ROM number, which is also
> held in &F4, so there is no need to preserve X, as it can be restored
> directly from &F4 on exit, viz:
>  
> .ServiceEndHandled
>   PLA          ; Pull Y
>   TAY
>   LDA &F4      ; Restore X

 LDX^^^

Besides, there's no need to do that either as the MOS restores X for itself
so you can corrupt it,
Sprow.
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>