Videopac / Odyssey2 forum
August 06, 2021, 04:48:20 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: If you have some news and you want it to be shown here, pm Janzl!
 
   Home   Help Login Register links videopac.nl  
Pages: [1]   Go Down
  Print  
Author Topic: Quick Help  (Read 2067 times)
Rafael
Pedit5
I take the Videopac and leave the Canoli!
*
Posts: 2703



« on: February 20, 2011, 07:10:48 PM »

In the lines above what I need to change to get it: Moving the joy to left the sprite goes rigth and movin R the sprite goes left. I tried to replace the add by dec, but I not sure it?s the rigth to do (and even it?s rigth I dont did it correctly)

X_adjust2
   mov r0,#004h      
   movx a,@r0
   add a,r2         
   mov r6,a         
   add a,#06dh      
   jc no_X_adjust2
   mov a,r6
   add a,#0f8h      
   jnc no_X_adjust2
   mov a,r6         
   movx @r0,a
Logged
Rene_G7400
Moderator
I take the Videopac and leave the Canoli!
*****
Posts: 2519



WWW
« Reply #1 on: February 21, 2011, 12:15:20 AM »

You need to make the value of R2 negative, for example:
mov a,r2
cpl a
inc a
mov r6,a
movx a,@r0
add a,r6
mov r6,a
Logged
Rafael
Pedit5
I take the Videopac and leave the Canoli!
*
Posts: 2703



« Reply #2 on: February 21, 2011, 12:54:23 AM »

 Kiss

It worked...
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!