Skip to content

Commit 8cafad6

Browse files
committed
minimal atarivox detection to avoid multibutton making speech
1 parent 98cf899 commit 8cafad6

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

includes/startup.asm

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,37 @@ storeAinhsdevice
136136
jsr silenceavoxvoice
137137
endif
138138

139+
ifconst MULTIBUTTON
140+
ifnconst HSSUPPORT
141+
min_detectatarivoxeeprom
142+
jsr i2c_startwrite
143+
bcc min_no_eeprom_error
144+
lda #$ff
145+
jmp min_avoxdetect_done
146+
min_no_eeprom_error
147+
lda #$30
148+
jsr i2c_txbyte
149+
lda #$00
150+
jsr i2c_txbyte
151+
jsr i2c_stopwrite
152+
min_avoxdetect_done
153+
eor #$FF
154+
sta avoxdetected
155+
jmp min_detectatarivoxeepromdone
156+
include "i2c7800.inc"
157+
I2C_SUBS temp9
158+
min_detectatarivoxeepromdone
159+
endif ; HSSUPPORT
160+
endif ; MULTIBUTTON
161+
162+
ifconst MULTIBUTTON
163+
lda avoxdetected
164+
beq skipassignavox
165+
lda #10
166+
sta port1control ; designate port 1 as atarivox so multibutton won't disturb it.
167+
skipassignavox
168+
endif ; MULTIBUTTON
169+
139170
ifconst RMT
140171
ifconst RMTVOLUME
141172
lda #$F0 ; default to full RMT volume

0 commit comments

Comments
 (0)