Re: A86: Turning screen black


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

Re: A86: Turning screen black




In a message dated 11/20/98 11:37:52 PM Eastern Standard Time, KidFedX@aol.com
writes:

> What's the best way to turn on all of the pixes on the screen?  Is there a 
> rom
>  Call I can use or a short segment of program?
>  --Thanks

how about this:

	ld hl,$fc00			;video mem
	ld (hl)$ff				;set first byte
	ld de,$fc01			;second byte of video mem
	ld bc,1023			;length of screen-1 (first byte taken care of)
	ldir					;turn on all bits on screen

this is untested, but i think it'll work.  it uses the same principle as
clearing the screen (load a 0 into $fc00 instead of an $ff)