Compare length of two strings: Difference between revisions

no edit summary
(Add task to arm assembly for raspberry pi or android)
No edit summary
Line 88:
3 abc
</syntaxhighlight>
 
=={{header|ARM Assembly}}==
{{works with|as|Raspberry Pi <br> or android 32 bits with application Termux}}
Line 98 ⟶ 99:
for the routine affichageMess conversion10
see at end of this program the instruction include */
 
/* for constantes see task include a file in arm assembly */
 
/************************************/
/* Constantes */
/************************************/
.include "../constantes.inc"
 
.include "../constantes.inc"
/************************************/
/* structures */
/************************************/
 
.struct 0
list_string: @ string address
Line 116 ⟶ 120:
/* Initialized data */
/*********************************/
 
.data
szMessResult: .asciz "@ length : @\n"
Line 229 ⟶ 234:
/* insertion sort */
/******************************************************************/
 
/* r0 contains the address of table */
/* r1 contains the first element */
/* r2 contains the number of element */
 
insertionSort:
push {r1-r10,lr} @ save registers
Line 271 ⟶ 278:
/* ROUTINES INCLUDE */
/***************************************************/
 
.include "../affichage.inc"
</lang>
79

edits