Jump to content



0

Stereo upgrade detection - please help!


10 replies to this topic

#1 _Fandal_ OFFLINE  

_Fandal_

    Dragonstomper

  • 762 posts
  • Location:Czech Republic

Posted Tue Jun 20, 2006 12:16 AM

Hi all!

I need your help Atarians!! I'm looking for owners of stereo upgrade to test Raster's stereo detection routine on real HW. We know there's a lot of various stereo upgrades out there and we need to know if we're able to detect them all (or at least most of them). In the attachment you can find Raster's detection program. Please run it and let us know if your stereo upgrade was successfully found or not.

Thank you very much for your help!

F.

Attached Files


Edited by _Fandal_, Tue Jun 20, 2006 12:18 AM.


#2 Rybags ONLINE  

Rybags

    Quadrunner

  • 10,323 posts
  • Location:Australia

Posted Tue Jun 20, 2006 12:57 AM

What method does it use?

Wouldn't just triggering a Timer event on the resident POKEY be enough - then just compare the conents of the two IRQST registers?

#3 classics OFFLINE  

classics

    River Patroller

  • 2,102 posts
  • So many projects, so little time.
  • Location:Cleveland, Ohio

Posted Tue Jun 20, 2006 1:46 AM

This did not detect my stereo Pokey cartridge. You should probably look for Pokeys in d5xx as well.

Steve

Edited by classics, Tue Jun 20, 2006 1:48 AM.


#4 raster/c.p.u. OFFLINE  

raster/c.p.u.

    Chopper Commander

  • 221 posts
  • Location:Czech Republic

Posted Tue Jun 20, 2006 3:25 AM

View PostRybags, on Tue Jun 20, 2006 7:57 AM, said:

What method does it use?

pokey1 equ $d200
pokey2 equ $d210

STEREODETECTION
   lda pokey1+$09
   beq iss2  ;0 => last key L
;no last key L
   lda pokey2+$09
   beq issyes;0 on second POKEY KEY reg => stereo
issno
   lda #0
   rts
iss2
   ldy #7
iss3
   lda pokey2,y;POT regs
   bne issno   ;some one is not zero
   dey
   bpl iss3
issyes
   lda #1
   rts

Quote

You should probably look for Pokeys in d5xx as well.
There in d5xx area can be any cartridge hardware. I don't know if any "normal" program (game or demo, not music player sw or system tool) supports stereo at d5xx... :ponder:
(Also it could evoke whatever when you will read/write to d5xx area, depend on inserted cartridge.)

#5 Beetle OFFLINE  

Beetle

    Moonsweeper

  • 424 posts
  • Atarian at 8, 16, 32 and 64 Bits
  • Location:north west in Germany

Posted Tue Jun 20, 2006 7:33 AM

Hi

i tested the program on my stereo 800XL. My "Gumby" upgrade is
selfmade with the second pokey on top of the original one.

Your program detected the upgrade correctly. Nice sample ;-)

Greets,
Beetle

#6 Rybags ONLINE  

Rybags

    Quadrunner

  • 10,323 posts
  • Location:Australia

Posted Tue Jun 20, 2006 7:51 AM

If you find your routine doesn't work, maybe try timers?

SEI
LDA #0
STA $D21E; disable all IRQs on POKEY #2
STA $D208; AUDCTL
LDA #1
STA $D20E; enable only Timer 1 on POKEY #1
STA $D200; hi freq. interrupt
STA $D209; start timer
WAIT BIT $D20E
BNE WAIT; timer event doesn't take long with AUDF=1
BIT $D21E
BNE YES_POKEY2; IRQ event should not be on POKEY #2 as well
LDA #0
YES_POKEY2 STA POKEY2_FLAG
LDA $10
STA $D20E
CLI
...



#7 MEtalGuy66 OFFLINE  

MEtalGuy66

    River Patroller

  • 2,356 posts
  • If it aint broke, fix it anyway!
  • Location:Houston, TX, USA

Posted Tue Jun 20, 2006 8:58 AM

YEah. It detects the board I made & sold..

DUAL POkey Upgrade board thread

No problem..

#8 twh/f2 OFFLINE  

twh/f2

    Moonsweeper

  • 415 posts
  • Location:Fractalus

Posted Tue Jun 20, 2006 11:19 AM

yes I can confirm this to work.... mhm .. maybe because my stereo upgrade has been installed by members of C.P.U. at the Noise party in Slovakia :))

\twh

#9 _Fandal_ OFFLINE  

_Fandal_

    Dragonstomper

  • 762 posts
  • Location:Czech Republic

Posted Wed Jun 21, 2006 3:15 AM

Thank you guys for your help and especialy you Rybags. Your detection routine seems to be very universal for various stereo upgrades...

F.

#10 Rybags ONLINE  

Rybags

    Quadrunner

  • 10,323 posts
  • Location:Australia

Posted Wed Jun 21, 2006 4:22 AM

An additional comment.

You should store 3 in SKCTL (offset $0F).

In the case that bits 1,0 of the Serial Port control are 00, most (all?) of POKEYs function is disabled.

#11 _Fandal_ OFFLINE  

_Fandal_

    Dragonstomper

  • 762 posts
  • Location:Czech Republic

Posted Wed Jun 21, 2006 11:36 AM

View PostRybags, on Wed Jun 21, 2006 5:22 AM, said:

An additional comment.

You should store 3 in SKCTL (offset $0F).

In the case that bits 1,0 of the Serial Port control are 00, most (all?) of POKEYs function is disabled.

OK. I'll add it to the code. Thank you for advice.

F.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users