Changes between Version 90 and Version 91 of Archi-1-TP9
- Timestamp:
- Dec 6, 2020, 2:44:10 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Archi-1-TP9
v90 v91 135 135 lui $4, 0xD020 136 136 ori $4, $4, 0x0000 // cette instruction ne sert a rien puisqu on ajoute 0, mais je la mets pour le cas general 137 ori $5, 'x'138 sb $5, ($4) // Notez que le 0 devant ($4) n est pas obligatoire137 ori $5, $0, 'x' 138 sb $5, 0($4) // Notez que l'immédiat 0 devant ($4) n est pas obligatoire mais on s'obligera à le mettre 139 139 }}} 140 140 ''''''''''''''' … … 200 200 201 201 print: 202 lb $8, ($4) // get current char203 sb $8, ($5) // send the current char to the tty204 addiu $4, $4, 1 // point to the next char205 bne z $8, print// check that it is not null, if ok it must be printed202 lb $8, 0($4) // get current char 203 sb $8, 0($5) // send the current char to the tty 204 addiu $4, $4, 1 // point to the next char 205 bne $8, $0, print // check that it is not null, if ok it must be printed 206 206 }}} 207 207 '''''''''''''''