0

so im having trouble understanding how to pass parameters from one proc to another, both in a different .asm file. Im using TASM on a 64 bit.

So lets say i have a main proc:

extrn   addproc: proc, putint: proc
main    proc    
mov ax, n  ;where n is an integer
call    addproc
main    endp
 end    main

how would i send n to addproc and use it to add 2 to it (just for example)

addproc proc    
add ax, 2
addproc endp
 end    addproc
Sam Protsenko
  • 14,045
  • 4
  • 59
  • 75
ShadowViper
  • 365
  • 1
  • 5
  • 24

0 Answers0