forum home page
register faq member list calendar search
MacShock.com - Apple Forums
Reload this Page
Old 01-30-2012, 12:50 PM
Steve Nickolas
Guest
 
Posts: n/a
Default Single tones on the Mockingboard?

I'm reading through everything I can find any trying to find any simple
info on programming the Mockingboard. (it has to do mainly with something
not exactly Apple-related that I am using Apple hardware to test and base
my design on.)

Basically - I'm just trying to get a single quick "dink" or such out of a
MB. I'm just failing to "get" something simple again, I think. :/

-uso.
  Reply With Quote
Old 01-30-2012, 12:50 PM
Antoine Vignau
Guest
 
Posts: n/a
Default Single tones on the Mockingboard?

The answer may be @
http://mirrors.apple2.org.za/Apple%2...0Mockingboard/

Antoine
  Reply With Quote
Old 01-30-2012, 02:30 PM
Steve Nickolas
Guest
 
Posts: n/a
Default Single tones on the Mockingboard?

On Mon, 30 Jan 2012, Antoine Vignau wrote:

> The answer may be @
> http://mirrors.apple2.org.za/Apple%2...0Mockingboard/
>
> Antoine
>


Possibly. The stuff here does go into greater detail.

-uso.
  Reply With Quote
Old 01-30-2012, 02:30 PM
Steve Nickolas
Guest
 
Posts: n/a
Default Single tones on the Mockingboard?

Replying to myself.

I figured out the data the 8910 wants (using the Mockingboard exerciser),
but I seem not to be implementing the code right.

Here's my code, it's supposed to initialize the board when entered from
36864/$9000 and then beep the 8910 when entered from 36867/$9003. The
second call just does a short pause - no sound. :<

-uso.

;these values were determined empirically with the MockingBoard exerciser:
;
;Tone Control Fine 80($50) (register 0/2/4)
;Tone Control Coarse 0 (register 1/3/5)
;Noise Period 0 (register 6)
;Enable Mask 62($3E) (register 7)
;Amplitude 15($0F) (register 8/9/A)
;Envelope Fine 0 (register B)
;Envelope Coarse 0 (register C)
;Envelope Shape 0 (register D)

ADR6522 = $C400

.org $9000
signon: jmp init
entry: ldx #$00
ldy #$80
jsr push
ldx #$02
jsr push
ldx #$04
jsr push
ldx #$07
ldy #$3E
jsr push
ldy #$0F
inx
jsr push
inx
jsr push
inx
jsr push
ldy #$00
ldx #$01
jsr push
ldx #$03
jsr push
ldx #$05
jsr push
inx
jsr push
ldx #$0B
jsr push
inx
jsr push
inx
jsr push
lda #$00
tax
tay
@1: inx
bne @1
iny
bne @1
@2: jsr push
inx
cpx #$B
bcc @2
rts

push: sty ADR6522+1
jsr setreg
stx ADR6522+1
jsr setdata
rts
init: lda #$FF
sta ADR6522+2
sta ADR6522+3
reset: lda #$00
sta ADR6522
beq common
setreg: lda #$07
sta ADR6522
bne common
setdata: lda #$06
sta ADR6522
common: lda #$04
sta ADR6522
rts
  Reply With Quote
Old 01-30-2012, 06:40 PM
Michael J. Mahon
Guest
 
Posts: n/a
Default Single tones on the Mockingboard?

Get the datasheet on the 6522 and the AY-8910 datasheet and all questions
will be answered.

-michael - NadaNet 3.1 and AppleCrate II: http://home.comcast.net/~mjmahon
  Reply With Quote
Old 01-30-2012, 06:40 PM
Michael Black
Guest
 
Posts: n/a
Default Single tones on the Mockingboard?

On Mon, 30 Jan 2012, Michael J. Mahon wrote:

> Get the datasheet on the 6522 and the AY-8910 datasheet and all questions
> will be answered.
>

Is it that simple?

It is indeed really easy to do simple things like generate a tone with
that combination. It's making more complicated sounds or music that
rquires effort.

Michael

  Reply With Quote
Old 01-30-2012, 08:30 PM
Steve Nickolas
Guest
 
Posts: n/a
Default Single tones on the Mockingboard?

On Mon, 30 Jan 2012, Michael Black wrote:

> On Mon, 30 Jan 2012, Michael J. Mahon wrote:
>
>> Get the datasheet on the 6522 and the AY-8910 datasheet and all questions
>> will be answered.
>>

> Is it that simple?
>
> It is indeed really easy to do simple things like generate a tone with that
> combination. It's making more complicated sounds or music that rquires
> effort.
>
> Michael
>
>


Fortunately, a simple beep's all I need.

-uso.
  Reply With Quote
Old 01-30-2012, 08:30 PM
Sean Fahey
Guest
 
Posts: n/a
Default Single tones on the Mockingboard?

On Monday, January 30, 2012 1:45:30 PM UTC-6, Steve Nickolas wrote:

> Fortunately, a simple beep's all I need.


Beep.
  Reply With Quote
Old 01-30-2012, 08:30 PM
Steve Nickolas
Guest
 
Posts: n/a
Default Single tones on the Mockingboard?

On Mon, 30 Jan 2012, Sean Fahey wrote:

> On Monday, January 30, 2012 1:45:30 PM UTC-6, Steve Nickolas wrote:
>
>> Fortunately, a simple beep's all I need.

>
> Beep.
>


LOL.

Actually, I'd been thinking of how I could design a "neovintage" computer,
and put concepts of various computers into a blender. I figured for a CPU
I'd use a 65C02, for video 6847, for audio AY-8910. As far as sound goes
that meant the hardware would basically be a Mockingboard mapped to a
different address. >:P

I prolly won't be able to design a physical version but I've been trying
to design it practically, as in, would this work if the machine were
really built with the tech of the time?

Conceptually, though, I could in fact implement it in *software* - just
like one would implement an emulator. And if I needed to learn anything
in the process, I could rewrite Dapple with the new knowledge too.

Implementing a system beep via the Mockingboard sounds impractical, but
against the masterplan it was what I wanted to do.

(BTW, a Fine tone of "69" is closest, afaict, to the system bell. I think
80 sounds better though. And if I could somehow make a "dink" instead of
a simple beep that would be nice too.)

-uso.
  Reply With Quote
Old 01-30-2012, 08:30 PM
D Finnigan
Guest
 
Posts: n/a
Default Single tones on the Mockingboard?

Sean Fahey wrote:
> On Monday, January 30, 2012 1:45:30 PM UTC-6, Steve Nickolas wrote:
>
>> Fortunately, a simple beep's all I need.

>
> Beep.
>


CTRL-G.
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:13 PM.
Copyright ©2007-2008 MacShock.com. Powered by vBulletin
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.