+Cafeman Posted December 29, 2001 Author Share Posted December 29, 2001 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! Quote Link to comment Share on other sites More sharing options...
DanBoris Posted December 30, 2001 Share Posted December 30, 2001 This may have just been a typo, since you seem to have the idea: cmp joy_down should have beeb cmp #joy_down Dan Quote Link to comment Share on other sites More sharing options...
+Cafeman Posted December 30, 2001 Author Share Posted December 30, 2001 Yes Dan, it was a typo. It should have 'beeb' #Joy_down. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.