## Keyboard shortcuts

Press `←` or `→` to navigate between chapters

Press `S` or `/` to search in the book

Press `?` to show this help

Press `Esc` to hide this help

# Atmel OAK DSP

Assembler code

    ROM:0020
    ROM:0020 ; =============== S U B R O U T I N E =======================================
    ROM:0020
    ROM:0020 ; Attributes: bp-based frame
    ROM:0020
    ROM:0020 RESET_0:                                ; CODE XREF: RESET↑j
    ROM:0020
    ROM:0020 ; FUNCTION CHUNK AT ROM:00CB SIZE 00000001 BYTES
    ROM:0020
    ROM:0020                 mov     #$35F,sp
    ROM:0022                 mov     #$D,st0
    ROM:0024                 mov     #1,st1
    ROM:0026 ; assume page = 1
    ROM:0026                 cntx    s
    ROM:0027                 mov     #1,st0
    ROM:0029                 mov     #0,st1
    ROM:002B ; assume page = 0
    ROM:002B                 mov     #$40,st2
    ROM:002D                 cntx    r
    ROM:002E                 mov     #$40,st2
    ROM:0030                 mov     #0,cfgi
    ROM:0032                 mov     #0,cfgj
    ROM:0034                 mov     #$DD,a0
    ROM:0036                 brr     loc_3E, eq
    ROM:0037                 mov     #$C8DF,r0
    ROM:0039                 mov     #$F955,r1
    ROM:003B                 sub     #1,a0
    ROM:003C                 rep     a0l
    ROM:003D                 movp    (r0)+1,(r1)+1
    ROM:003E
    ROM:003E loc_3E:                                 ; CODE XREF: RESET_0+16↑j
    ROM:003E                 call    sub_91
    ROM:0040                 br      loc_CB
    ROM:0040 ; End of function RESET_0
    ROM:0040