Intro to assembly - Conditional branch

hello,

i tried the task in the Conditional Branch section in the “Intro to assembly language” - module, but i am stuck.

i understand the code like this:

 _start:
           mov rax, 5             ;put 5 to rax
           imul rax, 5             ;multiply rax with itself
loop:
           cmp rax, 10           ;do 10-5
           jnz loop                 ;if result not zero, jump to loop

the task is to modify the line

mov rax, 5

to make it not loop.

i tried some variations but nothing work. can someone give me a hint? obviously i did something wrong…:confused:

thx a much for help

well,

i solved the task. i did the same mistake as always: i stopped thinking…:confused:

could you find the answer? I am stuck too

yes, after a break of several days, i was able to solve the task. just look at the code and think carefully about what happens where in the code and then you will find the solution…:)…

I understand what is happening in the code (fundamentally). The issue is trying to access the hex value that prevents the loop from looping infinitely. I have entered every conceivable iteration of this value and still nothing…