windows - Passing Params From One Proc to Another in x86 Assembly -


so im having trouble understanding how pass parameters 1 proc another, both in different .asm file. im using tasm on 64 bit.

so lets have main proc:

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

how send n addproc , use add 2 (just example)

addproc proc     add ax, 2 addproc endp  end    addproc 


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -