incrementing memory blocks in assembly
phil11
Posts: 3
Is there a way to increment memory in a way similar to incrementing indexes in spin in assembly? I want to iterate a compared memory byte and iterate at every flag loop wile using as less spin as possible, since I want to maximize the output frequency.
thanks!
thanks!
Comments
Because what you are describing is:
add x, #1....
cmp x #number wz
if_z ...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
If so, simply put a label on the command you want to modify and add #1 to that label.
Remeber that you can use self modifying code. Be warned however that an instruction must be placed between the modifying code and the modified code.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,