mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-24 07:31:32 +00:00
14 lines
297 B
ArmAsm
14 lines
297 B
ArmAsm
.file "strncmp.S"
|
|
|
|
.section .text
|
|
.global _strncmp
|
|
.type _strncmp,@function
|
|
_strncmp:
|
|
scmpu ; Perform the string comparison
|
|
bnc 1f ; If Carry is not set skip over
|
|
scne.L r1 ; Set result based on Z flag
|
|
rts ;
|
|
1: ;
|
|
mov #-1,r1 ; Carry not set, result should be negative
|
|
rts ;
|