[Assembler] Questo programma può andare??
Ciao a tutti,
sto cercando di svolgere il seguente tema d'esame (esercizio 4)
http://web.diegm.uniud.it/pierluca/publ ... 41209r.pdf
sempre alla stessa pagina ci sono le definzioni delle istruzioni.
La soluizione mi è chiara, ma questa versione potrebbe andare bene oppure è sbagliata??
Grazie a tutti
sto cercando di svolgere il seguente tema d'esame (esercizio 4)
http://web.diegm.uniud.it/pierluca/publ ... 41209r.pdf
sempre alla stessa pagina ci sono le definzioni delle istruzioni.
La soluizione mi è chiara, ma questa versione potrebbe andare bene oppure è sbagliata??
- Codice: Seleziona tutto
TEMP_ADD: word EE00
START: PUSH R1
PUSH R2
LDWA R11 TEMP_ADD
LDWA R10 R1
CALL STRCPY
POP R2
POP R1
LDWA R10 R2
LDWA R11 R1
PUSH R1
CALL STRCPY
POP R1
LDWA R10 TEMP_ADD
LDWA R11 R1
CALL STRCPY
HLT
STRCPY: LDWR R12 R10
STBR R12 R11
JMPZ END_STRCPY
INC R10
INC R11
JUMP STRCPY
END_STRCPY: RET
Grazie a tutti