Intro To Assembly Language

Am stuck in this task, unconditional branching,section of assembly language, here it’s the ? Try to jump to “func” before “loop loop”. What is the hex value of “rbx” at the end. I keep getting 0x10000000 pls with this modified code in quote
‘ ‘ ‘

global _start

section .text
_start:
mov rbx, 2
mov rcx, 5
jmp func
loop:
imul rbx, rbx
loop loop
func:
mov rax, 60
mov rdi, 0
syscall

‘ ‘ ‘

1 Like

The jmp should be inside the loop func :

*global _start*

*section .text*
*_start:*
*mov rbx, 2*
*mov rcx, 5*
*loop:*
*imul rbx, rbx*
*jmp func*
*loop loop*
*func:*
*mov rax, 60*
*mov rdi, 0*
*syscall*
1 Like