Professional Documents
Culture Documents
Filière : GL
Exercice 1:
*-----------------------------------------------------------
* Title :
* Written by :
* Date :
* Description:
*-----------------------------------------------------------
ORG $1000
START: ; first instruction of program
Exercice 2:
*-----------------------------------------------------------
* Title :
* Written by :
* Date :
* Description:
*-----------------------------------------------------------
ORG $1000
START: ; first instruction of program
Exercice 3:
*-----------------------------------------------------------
* Title :
* Written by :
* Date :
* Description:
*-----------------------------------------------------------
ORG $1000
START: ; first instruction of program
Exercice 4:
*-----------------------------------------------------------
* Title :
* Written by :El Alouan Wisal
* Date :
* Description:
*-----------------------------------------------------------
ORG $1000
START: ; first instruction of program
; Inverser la chaîne
MOVE D2, D3
LEA (A3, D2),A3 ; Ajuster A3 à la fin de la chaîne
MOVE #6,D0
TRAP #15
MOVE.B D1,(A2)+ ; Stocker le caractère inversé
SUB #1,D3
JMP Inverse
Fin RTS
Fin2 SIMHALT
TXT1 DC 'Entrer la taille de la chaine',0
TXT2 DC 'Entrer la chaine',0
END START ; last line of source
Exercice 5:
*-----------------------------------------------------------
* Title :
* Written by :El Alouan Wisal
* Date :
*-----------------------------------------------------------
* Title :
* Written by :
* Date :
* Description:
*-----------------------------------------------------------
ORG $1000
START: ; first instruction of program