Re: [hatari-devel] DSP and HREQ

[ Thread Index | Date Index | More Archives ]

Actually, it doesn't run into the exception adress.
Something is missing somewhere ;)

Le 26/01/2015 23:02, Laurent Sallafranque a écrit :
oops ;)

For the DSP side, I propose :

HSR        equ    $ffe9    ;Host Status Register
HTX        equ    $ffeb    ;Host Transmit Register

    ; START
    org    p:$0
    jmp     $40

    org     p:$40

    ; General code to initialise port B
    movep    #>0,x:<<$fffe
    movep    #$c00,x:<<$ffff
    movep    #>1,x:<<$ffe0
    movep    #>3,x:<<$ffe8        ; enable interrupts
    andi    #$fc,mr

    jclr    #1,x:<<HSR,*
    move    a,x:HTX

    jmp    tst_loop

I think I have to set %11 to $ffe8 to enable interrupts.
I'll test this under hatari first.

Le 26/01/2015 23:00, Nicolas Pomarède a écrit :
Le 26/01/2015 22:48, Laurent Sallafranque a écrit :
I'm trying to do the test you're asking.
Is the cpu code OK for you ?
(I'm starting the DSP code now)


I think you copied/pasted twice, your asm part is doubled :)

Apart from that I think it should work with the appropriate small piece of dsp code to transmit 1 byte in the low dsp word and trigger hreq at $ffa202.

But I never really coded for the dsp, so you or some other people here certainly know better than me :)


Mail converted by MHonArc 2.6.19+