Pass by value and pass by reference in Assembly
问题 I'm trying to solve this problem: Create a PROC procedure that takes one parameter as Pass by Value and prints the number of 'X' according to the number passed as a parameter. Before printing, make sure parameter is a positive number, at end of program you need to change the registers that have been used back to their first values . If the input to the procedure is 5 then the output on the console should be: XXXXX This is my code: var db 5 ;In the dataseg push [var] ;in the codeseg proc