FreeCalypso > hg > freecalypso-tools
view target-utils/libc/memcmp.S @ 720:b73c21a2148f
reorg: smallconv.c moved from ffstools/cal2text to librftab
This module contains write_afcdac_ascii() and write_stdmap_ascii()
functions; the plan is to make them available to other programs,
particularly the upcoming addition of RF table dump to tiffs.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 25 Aug 2020 06:28:44 +0000 |
parents | a675cec34076 |
children |
line wrap: on
line source
.text .code 32 .globl bcmp .globl memcmp bcmp: memcmp: cmp r2, #0 beq zero_len_out mov r3, r0 1: ldrb r0, [r3], #1 ldrb r12, [r1], #1 subs r0, r0, r12 bxne lr subs r2, r2, #1 bne 1b bx lr zero_len_out: mov r0, #0 bx lr