Ok, I'm not sure whether or not the question I have is difficult or not. Ok I have two variables:
The psudocode for what i want is:
This in and of itself is not difficult, my problem is that I need a kill all for the following problem:
I only have the names of the two variables, and the data type of the seconed. So the kill all would work just as well for A=B as it would for Y=X (all I need to do is plug the names in and then the seconed would be moved to the first.
so:
Var1 = conversion(Var2_Type, Var2)
So back to the X,Y example. Y will equal X no matter what type Y actualy is. For example, if this "kill all" is a procedure, I will pass the location of Var1,and 2 and the type of Var 2,
For the type passing, I was planning to use a character for that:
'B' = byte
'W' = word
'D' = double
ect...
something like:
LEA EAX,[Var1]
PUSH EAX
LEA EAX,[Var2]
PUSH EAX
call ConvertAndAssign