This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's z80 & ez80 Assembly subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Z80 & 68k Assembly => z80 & ez80 Assembly
Author Message
Tyraniek


Member


Joined: 07 Jun 2003
Posts: 133

Posted: 21 Jun 2003 09:24:53 am    Post subject:

How is it that I can test a pixel correctly with IPoint 3 with Virtual TI, and that I can't do it at all on my calculator ????????? The program runs as if I didn't test the pixel.... Neutral
Back to top
Job the GameQuitter


Member


Joined: 04 Jun 2003
Posts: 102

Posted: 21 Jun 2003 10:40:41 am    Post subject:

I advise agains using IPoint period. Try this, it's one of the Ion routines:
Code:
;-----> Get pixel information
; input:   e=y coordinate
;  a=x coordinate
; output:   a holds data for pixel (e.g. %00100000)
;  hl->byte where pixel is on the gbuf
getPixel:
   ld   d,$00
   ld   h,d
   ld   l,e
   add   hl,de
   add   hl,de
   add   hl,hl
   add   hl,hl
   ld   de,gbuf
   add   hl,de
   ld   b,$00
   ld   c,a
   and   %00000111
   srl   c
   srl   c
   srl   c
   add   hl,bc
   ld   b,a
   inc   b
   ld   a,%00000001
getPixelLoop:
   rrca
   djnz   getPixelLoop
   ret


Note: this tests the pixel in plotSScreen, which doesn't have to coincide with the screen, depending on which routines you use. If you know how to write directly to the LCD you could modify this routine to test the pixel on screen quite easily.


Last edited by Guest on 21 Jun 2003 10:42:49 am; edited 1 time in total
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement