Jump to content



0

Reading the difficulty switches on the 7800?


4 replies to this topic

#1 PacManPlus OFFLINE  

PacManPlus

    River Patroller

  • 3,320 posts
  • Location:Naples, Florida

Posted Wed May 11, 2005 5:18 AM

Hi!

I hope someone can help me - can anyone tell me how to read the difficulty switches on the 7800 in 7800 mode? (Example code would be great!) I'm working on something where I need to read both switches. Thanks in advance!

Bob

#2 Bruce Tomlin OFFLINE  

Bruce Tomlin

    River Patroller

  • 3,531 posts
  • CD C9 01
  • Location:Austin, TX

Posted Wed May 11, 2005 7:21 AM

It works exactly the same as on the 2600.

#3 PacManPlus OFFLINE  

PacManPlus

    River Patroller

  • 3,320 posts
  • Location:Naples, Florida

Posted Wed May 11, 2005 10:18 AM

Thanks Bruce :)

For some reason I thought it was different...

I think I have a commented Adventure disassembly I can look through to see how they read them.

Thanks again

#4 Harry_Dodgson OFFLINE  

Harry_Dodgson

    Moonsweeper

  • 393 posts
  • Location:SE Michigan, USA, Earth

Posted Thu May 12, 2005 9:42 AM

PacManPlus, on Wed May 11, 2005 7:18 AM, said:

Hi!

I hope someone can help me - can anyone tell me how to read the difficulty switches on the 7800 in 7800 mode?  (Example code would be great!)  I'm working on something where I need to read both switches.  Thanks in advance!

Bob

View Post


How about something like this? :-)

BIT Swchb
BVS p0expert
BVC p0amateur
BCS p1expert
BCC p1amateur

#5 vdub_bobby OFFLINE  

vdub_bobby

    Quadrunner

  • 5,831 posts
  • Boom bam.
  • Location:Seattle, WA

Posted Thu May 12, 2005 10:05 AM

Harry_Dodgson, on Thu May 12, 2005 7:42 AM, said:

PacManPlus, on Wed May 11, 2005 7:18 AM, said:

Hi!

I hope someone can help me - can anyone tell me how to read the difficulty switches on the 7800 in 7800 mode?  (Example code would be great!)  I'm working on something where I need to read both switches.  Thanks in advance!

Bob

View Post


How about something like this? :-)

BIT Swchb
BVS p0expert
BVC p0amateur
BCS p1expert
BCC p1amateur

View Post


:!:
The 'bit' instruction puts bit 7 into the sign flag, not the carry flag!
And also, in that code the last two lines will never be reached.
Try this instead:
   bit SWCHB
   bmi P1Expert
  ;--else P1 novice
   bvs P0ExpertAndP1Novice
  ;--else P0 novice and P1 novice
  ;--code here
   jmp Done
P0ExpertAndP1Novice
  ;--code here
   jmp Done
P1Expert
   bvs P0ExpertAndP1Expert
  ;--else P0 novice and P1 expert
  ;--code here
   jmp Done
P0ExpertAndP1Expert
  ;--code here

Done





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users