2 A bug in z80 register allocation resultingin broken code for gbz80.
8 #pragma disable_warning 84
11 void Proc_2 (int *Int_Par_Ref
)
16 void Proc_7 (int Int_1_Par_Val
, int Int_2_Par_Val
, int *Int_Par_Ref
)
34 for (Run_Index
= 1; Run_Index
<= Number_Of_Runs
; ++Run_Index
)
40 while (Int_1_Loc
< Int_2_Loc
)
42 Proc_7 (Int_1_Loc
, Int_2_Loc
, &Int_3_Loc
);
46 Int_2_Loc
= Int_2_Loc
* Int_1_Loc
;
47 Int_1_Loc
= Int_2_Loc
/ Int_3_Loc
;
48 Int_2_Loc
= 7 * (Int_2_Loc
- Int_3_Loc
) - Int_1_Loc
; // Operand overwritten on second subtraction.