Abbreviations, simple: Difference between revisions

correction program arm assembly
(→‎{{header|ARM Assembly}}: flaged as needed improvement.)
(correction program arm assembly)
Line 683:
Also note that &nbsp; <big> put </big> &nbsp; isn't an error. }}
 
<pre> Ok correction le 17/11/2020 16H </pre>
{{works with|as|Raspberry Pi}}
<lang ARM Assembly>
Line 688 ⟶ 689:
/* program abbrSimple.s */
/* store list of command in a file */
/* and run the program abbrEasyabbrSimple command.file */
 
/* REMARK 1 : this program use routines in a include file
Line 820 ⟶ 821:
ldr r5,[r6,#command_min]
cmp r5,#0 @ minimum = zéro ?
ble 4f2f
cmp r4,r5 @ input < command capitalminimum letters
blt 4f @ no correct
add r3,r3,#1 @ else increment counter
mov r7,r1 @ and save address command
b 4f
2:
mov r0,r1
bl computeLength @ length input command
cmp r4,r0 @ length command input = length command
bne 4f @ no correct
add r3,r3,#1 @ else increment counter
mov r7,r1 @ and save address command
Line 1,095 ⟶ 1,104:
*error*
Enter command (or <ctrl-c> to stop) : put
PUT
*error*
Enter command (or <ctrl-c> to stop) : mo
MOVE
Line 1,106 ⟶ 1,115:
Enter command (or <ctrl-c> to stop) : 6
*error*
Enter command (or <ctrl-c> to stop) : poxeRinpoweRin
POWERINPUT
*error*
Enter command (or <ctrl-c> to stop) : ^C
pi@raspberrypi:~/asm32/rosetta32/ass9 $
</pre>
 
 
=={{header|C}}==