Jump to content
IGNORED

Collisions & VBlank -- Atari 5200/8bit


Cafeman

Recommended Posts

Just to have some kind of closure to this thread, I think I understand why I was confused.

 

there is no difference between having these two equates --

code:


WhichLevel = $50 ; where WhichLevel will

; have values of 0,1,2,3

 

Joy_Down = $50 ; where the value of #$50

; will be checked literally

 

----


 

it's all in how you use these two equates. You'd have a statement like this for WhichLevel --

 

code:


lda #$01

sta WhichLevel ; byte at mem location $50 would store

;literal value of #$01


 

But you'd use a "#" to literally check for a #$50 when using Joy_down --

 

code:


lda Pot0

cmp Joy_down

beq RoutineX


 

I originally was thinking in a different sense that how 6502 ASM compilers think, I guess. Thanks Calimari and everyone!

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...