Jump to content
IGNORED

RESMP0 and HMM0 :\


Recommended Posts

Hi. I have a problem with my last game.

I use RESMP0 to lock and unlock the missile with GRP0.

When I shot the missile HMM0 is #%10010000 and NUSIZ0 is #%00110000 and all work great.

My problem is the missile starts far from its GRP0 (see the pic)

Is it normal that distance?

Thanks.

resp0.jpg

Link to comment
Share on other sites

;https://bumbershootsoft.wordpress.com/2018/08/30/an-arbitrary-sprite-positioning-routine-for-the-atari-2600/
    MAC SETHORIZPOS_BANK1
        cpx     #$02
        adc     #$00
        clc
        adc     #$2e
        sec
        sta     WSYNC
.coarseMoveLoop
        sbc     #$0F
        bcs     .coarseMoveLoop
        sta     RESP0,X
        eor     #$ff
        adc     #$f9
        asl
        asl
        asl
        asl
        sta     HMP0,X
    ENDM
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...