4
How can I do a repeat a certain number of times in Assembly (no MIPS)?
Example in pseudocode, assuming the variable registrador
be a registrar that I want to receive all numbers from 1 to 6 (one at a time, obviously)
var i = 1;
while(i <= 6)
{
registrador = i;
i = i + 1;
}
What is this
registrador
?– Maniero
It is to be a register of the processor, I want that at the end of the code it has the value 6 (as in the code presented). As I can run step by step, I can see the values being changed.
– Jéf Bueno
I don’t know anything about MIPS, but it would look something like this: https://godbolt.org/g/Nlcax8
– Maniero
Neither do I, @bigown But that code is terrible :p
– Jéf Bueno
The GCC’s fault, not mine :D
– Maniero