[Coco] 64K ROM to RAM programs - where did this one come from?

Joel Rees joel.rees at gmail.com
Thu Dec 16 07:47:24 EST 2021


On Wed, Dec 15, 2021 at 12:12 PM Allen Huffman <alsplace at pobox.com> wrote:
> [...]
> Why do some of you push CC at the start?

Especially if you're playing with the S stack in your copy routine,
you may not want interrupts to occur while you are copying. But if you
leave them masked when you're done, the computer may not respond
normally to normal input until you hit the reset button or power
switch.

By pushing CC before you mask the interrupts, you avoid having to know
what state to restore the interrupt masks to when done.

HTH.

-- 
Joel Rees

http://reiisi.blogspot.jp/p/novels-i-am-writing.html


More information about the Coco mailing list