How to debug the .asm source?

I'm not familiar with the nasm. Any one could tell me how to debug the .asm source?

what's the meaning of the following code in kernel.asm ?

mov AAX,vm_startt
%ifdef BITS32
add AAX,BootImageBuilder_JUMP_MAIN_OFFSET32
call AAX

where dose the call instruction go?

Answer

The jump goes into the java boot code. This is the point where the assembler bootstrap hands over execution to the compiled java code.

The actual address is patched by the bootimage build process.

Ewout