From 4ed8060318b1807638c12b8b43660bb98fc99fba Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Fri, 10 Oct 2025 23:15:18 +0200 Subject: Cours du 6 au 10 octobre --- .../architecture des ordinateurs/tme/tme4/exo3.asm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 semestre 3/architecture des ordinateurs/tme/tme4/exo3.asm (limited to 'semestre 3/architecture des ordinateurs/tme/tme4/exo3.asm') diff --git a/semestre 3/architecture des ordinateurs/tme/tme4/exo3.asm b/semestre 3/architecture des ordinateurs/tme/tme4/exo3.asm new file mode 100644 index 0000000..4ccd63a --- /dev/null +++ b/semestre 3/architecture des ordinateurs/tme/tme4/exo3.asm @@ -0,0 +1,19 @@ +.data +ch: .asciiz "coucou" +.text + lui $8, 0x1001 + ori $2, $0, 4 + or $4, $0, $8 + syscall + + # on garde en mémoire les deux caractères + lb $9, 0($8) + lb $10, 1($8) + # on les échanges + sb $9, 1($8) + sb $10, 0($8) + # et on affiche + syscall + + ori $2, $0, 10 + syscall \ No newline at end of file -- cgit v1.2.3