Files
open-roms/c64/kernal/screen/screen_restore_sal_eal.s
T

30 lines
692 B
ArmAsm

#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
screen_restore_sal_eal:
plx_trash_a
ply_trash_a
// Note: While the following routine is obvious to any skilled
// in the art as the most obvious simple and efficient solution,
// it results in a relatively long verbatim stretch of bytes when
// compared to the C64 KERNAL. Thus we have swapped the order,
// just to reduce the potential for any argument of copyright
// infringement, even though we really do not believe that the
// routine can be copyrighted due to the lack of creativity.
pla
sta EAL+1
pla
sta SAL+1
pla
sta EAL+0
pla
sta SAL+0
jmp screen_common_sal_eal
#endif // ROM layout