Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diaszano/par-ou-impar-assembly
https://github.com/diaszano/par-ou-impar-assembly
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/diaszano/par-ou-impar-assembly
- Owner: Diaszano
- Created: 2021-09-24T23:12:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-24T23:13:35.000Z (over 3 years ago)
- Last Synced: 2024-11-07T09:34:54.425Z (2 months ago)
- Language: Assembly
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Par ou Impar em ASSEMBLY
## O objetivo era reescrever o seguinte código C em MIPS Assembly:
###
~~~c
int main(int argc, char const *argv[]){
int i;
int vetor[8];
for(i = 0; i < 8; i++) {
if(i%2 == 0){
vetor[i] = i * 2;
}else{
vetor[i] = vetor[i] + vetor[i-1];
}
}
return 0;
}
~~~
### Cada posição do vetor deve ter 4 bytes e deve ser armazenada, em sequência, a partir da posição 0x1001000 da memória.