Re: A83: inversing the screen
[Prev][Next][Index][Thread]
Re: A83: inversing the screen
A bit faster and smaller, and actually increments hl :P
invertScreen:
ld hl,plotsscreen
ld bc,3
invertLoop:
ld a,(hl)
cpl
ld (hl),a
inc hl
djnz invertLoop
dec c
jr nz,invertLoop
ret
In a message dated 2/18/01 2:01:30 PM Eastern Standard Time,
gte172i@prism.gatech.edu writes:
invertScreen:
ld hl,plotsscreen
ld bc,767
invertLoop:
ld a,255
xor (hl)
ld (hl),a
dec c
jr nz,invertLoop
djnz invertLoop
ret
----
Jonah Cohen
<ComAsYuAre@aol.com>
http://jonah.ticalc.org
Follow-Ups: