Jump to content
IGNORED

Mapping PMG coords to screen resolution


Recommended Posts

I'm currently writing a utility that uses Graphics 3 screen, I know the top left corner positions and set these to their

base values, then horizontal position is calculated as follows to move P0 one pixel left (or right) with joystick movement.

POKE(HPOSP0,HP0+x-6+((x-10)*3));  

 

Vertical is calculated to move 4 lines UP or DOWN to maintain one pixel movement

mycorsor is pointing at PMBASE + base position of P0 + offset into P0

 

                    for(i=4;i<8;i++)
                        POKE(mycursor+i,0); // clear old cursor
                    for(i=0;i<4;i++)
                        POKE(mycursor+i,cursor_data); // write new cursor

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...