1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2010 by Spencer Oliver *
5 * spen@spen-soft.co.uk *
6 ***************************************************************************/
14 r0 source address (in)
15 r1 target address (in)
21 bic r4, r1, #3 /* word address */
22 mov r3, #0x40 /* write command */
24 ldrh r3, [r0], #2 /* read data */
25 strh r3, [r1], #2 /* write data */
26 mov r3, #0x70 /* status command */
29 ldrb r3, [r4, #0] /* status */
32 mov r5, #0x50 /* clear status command */
34 mov r5, #0xFF /* read array */
38 subs r2, r2, #1 /* decrement word count */