Since the 8085 code is working with registers, you will need to declare variables which simulate those registers. You can then perform the same operations using them as operands. Obviously, you will need to gain familiarity with 8085 ASM. For instance, an instruction with a single operand, as ADD B, has an implicit operand, A, which serves as both an operand to be used in the calculation, and as the recepient of the result (the accumulator). The total result is as if one wrote, A = A + B. You will need to learn these things, and you will need to write your own code. Feel free to post questions regarding the problems that you have, but you must write the code.