mirror of
https://git.code.sf.net/p/openocd/code
synced 2024-11-25 15:46:25 +00:00
a126229dff
Replace the GPLv2-or-later boilerplate with the SPDX tag. The SPDX tag on files *.c is incorrect, as it should use the C99 single line comment using '//'. But current checkpatch doesn't allow C99 comments, so keep using standard C comments, by now. Change-Id: I380d552940f1c405309a3346454251c0e80b5a45 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7159 Tested-by: jenkins
47 lines
821 B
ArmAsm
47 lines
821 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/***************************************************************************
|
|
* Copyright (C) 2013 by Henrik Nilsson *
|
|
* henrik.nilsson@bytequest.se *
|
|
***************************************************************************/
|
|
|
|
.text
|
|
.syntax unified
|
|
.arch armv7-m
|
|
.thumb
|
|
.thumb_func
|
|
|
|
.align 4
|
|
|
|
/* Inputs:
|
|
* r0 buffer address
|
|
* r1 NAND data address (byte wide)
|
|
* r2 buffer length
|
|
*/
|
|
read:
|
|
ldrb r3, [r1]
|
|
strb r3, [r0], #1
|
|
subs r2, r2, #1
|
|
bne read
|
|
|
|
done_read:
|
|
bkpt #0
|
|
|
|
.align 4
|
|
|
|
/* Inputs:
|
|
* r0 NAND data address (byte wide)
|
|
* r1 buffer address
|
|
* r2 buffer length
|
|
*/
|
|
write:
|
|
ldrb r3, [r1], #1
|
|
strb r3, [r0]
|
|
subs r2, r2, #1
|
|
bne write
|
|
|
|
done_write:
|
|
bkpt #0
|
|
|
|
.end
|