title: How would I increment every byte in a register? (64 Bit, Linux, NASM)
body: <p>I have recently started to learn assembly, and I have set up a small project for myself. The goal is to use loops. I want to move 0x414141 to RAX, then loop over RAX, and increment every byte so RAX would contain 0x424242 at the end of the code.</p>
  
  <p>I have tried incrementing byte rax, but I always get errors from NASM when trying to compile it. Currently, I have working code that in the end, will increment RAX to be equal to 0x414144. I can't seem to find anything that looks/sounds close to what I want to do. (But how hard can it be, right?)</p>
  
  <pre><code>global _start
  
  section .text
  _start:
      mov rax, 0x414141
      mov rcx, 3
  strLoop:
      inc rax
      loop strLoop
  
      mov rax, 60
      mov rdi, 0
      syscall
      ; ^ exit 
  </code></pre>
  
  <p>When I look at RAX in GDB, in this code, I would expect it to be 0x414144, which it is. However, I want to get my code to a point where it is 0x424242, which I guess would be the expected result in this project.</p>