Code: Select all
.section .cp.const4, "caM", @progbits, 4
XS1_PORT_4F: .word 0x40500
XS1_CLKBLK_REF: .word 0x6
CTRL_INUSE_ON: .word 0x0008
CTRL_RUN_STARTR: .word 0x000f
.text
.align 2
.globl _start
_start:
ldap r11, _cp
set cp,r11
ldw r10, cp[XS1_PORT_4F]
ldw r11, cp[XS1_CLKBLK_REF]
ldw r9, cp[CTRL_INUSE_ON]
setc res[r11], r9
ldw r9, cp[CTRL_INUSE_ON]
setc res[r10], r9 # CTRL_INUSE_ON
loop:
ldc r9, 0x03
out res[r10], r9
ldc r9, 0x03
out res[r10], r9
bu loop