I wrote the following routine to put an address into reg.r7 and then realized I needed not the address in reg.r7 but the value pointed to by the address. I'm trying to derefence this address but I'm stumped. What I coded still just puts the address into reg.r7
Here is my function:
Code:long convertDate(const void *date1) { ProcessControl& control = getControlArea(); TPF_regs regs; if(date1 !=0) { regs.r7 = *(long *)date1; control.input.location = DatWk::FIRST_R7; } UA80(®s); return regs.r1; }