A82: Re: Zpong


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

A82: Re: Zpong



 After each write operation the display controllers internal cursor is moved
either down or t the right. Writing 7 to port 10h will make the cursor go
one line down after each write writing 5 will make it go to the left. So the
code you wrote would not write | , but _ and move the cursor down.

There is (as far as i know) no way to chage the way the pixels are changed,
so writeing 00 will turn of all pixels. If you have alook at PutPixel you
can see how the other operation can be performed, but it takes a bit longer
to do.

Dines

-----Original Message-----
From: GeradS711@aol.com <GeradS711@aol.com>
To: assembly-82@lists.ticalc.org <assembly-82@lists.ticalc.org>
Date: 21. oktober 1997 10:55
Subject: A82: Zpong



>I have decided to rewrite pong to make it more like zpong for the 85. In
>order to do this I have a couple of questions.
>First, According to 82ports.txt if you do this
>ld a,7
>call $7F3
>out (10h),a
>it will set the cursor to write bytes down.
>So if you do this
>ld a,%11111111
>call $7F3
>out (11h),a
>you will write something that looks like this:
>|
>Is that correct?
>Another question I have is
>If you write %0000000
>to the display port it will turn off all the pixels, how could you do this
so
>it won't,
>so writing %10000000
>will turn a pixel on but none off
>Thanx
>Gerad
>
>