r := &obj.RegInfo{ R: []obj.Reg{ {Name: "AX", Reg: 0}, {Name: "BX", Reg: 3}, }, Float: []obj.Reg{}, Special: []obj.SpecialReg{}, }
x := &prog.Reg{ Reg: 5, Typ: obj.TYPE_ADDR, Name: "DI", Val: 0, Index: 0, }This code creates a new Prog Reg struct representing the DI register. It has a register number of 5, a type of TYPE_ADDR (memory address), a name of "DI", and a value and index of 0.