is +=1 thread safe

Arnaud Delobelle arnodel at googlemail.com
Fri May 2 14:23:54 EDT 2008


Marc 'BlackJack' Rintsch <bj_666 at gmx.net> writes:

>
> There are no modern processors with an opcode for incrementing a memory
> location!?  At least my C64 can do that.  ;-)

Indeed!  I remember a simple use was to make the border change colour
very fast, a v. cool effect when you're 12!
 
        CLV
LOOP:   INC $D020
        BVC LOOP

(from memory, untested!)

-- 
Arnaud



More information about the Python-list mailing list