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