contrib: replace the GPLv2-or-later license tag
[openocd.git] / contrib / loaders / flash / armv4_5_cfi_intel_16.s
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 /***************************************************************************
4 * Copyright (C) 2005, 2007 by Dominic Rath *
5 * Dominic.Rath@gmx.de *
6 * Copyright (C) 2010 Spencer Oliver *
7 * spen@spen-soft.co.uk *
8 ***************************************************************************/
9
10 .text
11 .arm
12 .arch armv4
13
14 .section .init
15
16 /* algorithm register usage:
17 * r0: source address (in RAM)
18 * r1: target address (in Flash)
19 * r2: count
20 * r3: flash write command
21 * r4: status byte (returned to host)
22 * r5: busy test pattern
23 * r6: error test pattern
24 */
25
26 loop:
27 ldrh r4, [r0], #2
28 strh r3, [r1]
29 strh r4, [r1]
30 busy:
31 ldrh r4, [r1]
32 and r7, r4, r5
33 cmp r7, r5
34 bne busy
35 tst r4, r6
36 bne done
37 subs r2, r2, #1
38 beq done
39 add r1, r1, #2
40 b loop
41 done:
42 b done
43
44 .end

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)