Re: A83: invert part of screen


[Prev][Next][Index][Thread]

Re: A83: invert part of screen




there is a much easier way...

it will run alot faster if you dont use sprite routines, since you know this
is all aligned.  If you want a different style routine that does not affect
the graph buffer you should check out the source for the cursor in Sqxrz 83.


; inverts the next 8 rows starting at de
;  so to figure out the starting pixel use the following formula "ld
de,plotsscreen+12*ROWS"

invert8pixels:
 ld b,96            ; 8 rows * 12 bytes per row
invert8pixLoop:
 ld a,(de)
 cpl                ; a = the complement of a
 ld (de),a
 inc de
 djnz invert8pixLoop

 ret



References: