I cannot help you with Insight or GDB. Jeff's page does not look encouraging for Insight. I happen to know that Jeff talked with Jeff Owens about debuggers. Jeff O. had "asmbug" and/or "minibug". Might help?
This is poor, but it does seem to display the expected number/ Any help at all?
; nasm -f elf64 myprog.asm
; ld -o myprog myprog.o
global _start
section .text
_start:
mov rax, "AAA"
call showraxh
mov al, 10 ; NL
call putc
exit:
mov rax, 60
mov rdi, 42
syscall
;--------
showraxh:
push rax
push rbx
push rcx
push rdx
mov rbx, rax
mov rdx, 16
.top:
rol rbx, 4
mov al, bl
and al, 0xF
add al, '0'
cmp al, '9'
jna .num
add al, 7
.num:
call putc
dec rdx
jnz .top
pop rdx
pop rcx
pop rbx
pop rax
ret
;----------
putc:
push rdx
push rsi
push rdi
push rax
mov rax, 1
mov rdi, 1
mov rsi, rsp
mov rdx, 1
syscall
pop rax
pop rdi
pop rsi
pop rdx
ret
;---------
Let us know if you have any success at all. 64 bit is not the best thing that happened to assembly language!
Good Luck,
Frank