Using DSPTR

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

Just a heads-up for using DSPTR;  the correct order to write the address pair for data transfer is HI and then LO. Some examples "out there" have the ordering incorrect. They happen to work because they also use address 0. 

So, here's some correct example code...

                    ldx #>_DS_TO_ARM
                    stx DSPTR                   ; HI address
                    ldx #<_DS_TO_ARM
                    stx DSPTR                   ; LO address

                    ldy #0                      ; data to "send"
                    sty DSWRITE                 ; "send"