x86 - Defining labels in .com files before the code itself -


x1 dw 7 x2 dw 6  org 100h mov ax,[x1]  mov bx,[x2] call calc_mod (calcs modolu) mov ah,4ch int 21h 

and executed .com file , got weird results, because have defined labels before actual code? allowed?

thanks!

being 20 years built .com, may wrong don't believe start @ 0x100, that's .exe.

so without jmp 0x100 @ 0x0000 you'll wierd results..

regards,

//t


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -