Hi all thanks for the assists! (Sorry if my terminology usage is abysmal... definite beginner!)
@Sunbeam
Thanks for the encouragement
I would say that I have no time but then if I have time to play the game anyway...
I'll start hello worlding myself on ASM
@jungletek
Thanks for the info/suggestions! I think I probably need to take it back to basics and understand exactly what I'm modifying as I can't answer your question sufficiently - I have no idea what is in these values (registers?) before I start writing to them. I'm looking a little too closed box around what I identified as part where the solution could lie.
I guess you are suggesting I should create(PUSH) my own registers to store the values, do the math and add to rcx and pop them off again.
Or alternatively MOV directly into RDI would already multiply the value by the float that is MOV in?
I'll try to get better understanding and give it a go!
@ShyTwig16
Thanks, you got me I clearly have no idea of what EAX, RAX etc mean. In my head that does not have any ASM knowledge, they are like properties I would use in higher level languages. Somehow I'm also assuming I can do what I want with them with no net effect which as I type that sounds ridiculous.
Also I made a stupid assumption that newmem: was defining some kind of procedure... rather than a label. Of course therefore executing the add and mov twice!
Thanks for the operation examples will start understanding these when I get chance.
Just another probably stupid question to you all - When I hit the Execute button on the Auto assembler - does this actually try and execute the instructions straight away? Or does it inject so that they will be executed next time the "originalcode" would have been executed?
I'll not post any more questions in this thread as I guess this is not so FC5 specific any more...
Thanks all!