Re: [hatari-devel] DSP and HREQ

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


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

tst_loop:
     jmp    tst_loop



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



shouldn't it be %11 to ffe9 (HCR) instead ?




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/