|
Post by mauriciorother on Aug 22, 2017 14:55:39 GMT -3
Neander
1) Fazer com que o conteúdo da posição 129 da memória tenha o mesmo conteúdo da posição 128.
NOP
LDA 128
STA 129
HLT
2) Somar os conteúdos existentes nas posições 128 e 129 e escrever o resultado da soma na posição 130.
NOP
LDA 128
ADD 129
STA 130
HLT
3) Criar um laço infinito que incremente o conteúdo do endereço 128 em 1.
NOP
LDA 128
ADD 129
STA 128
JMP 1
HLT
4) Multiplicar o conteúdo da posição 128 por 5 e salvar o resultado na posição 129.
NOP
LDA 128
ADD 128
ADD 128
ADD 128
STA 129
HLT
5) Repetir o exercício anterior usando um loop de repetição usando o laço JMP, JN ou JZ. (Para fazer em casa, levar na próxima aula) Site sugerido: lightbot.comAnexo: Neander 2017-08-22.docx (14.17 KB)
|
|