package cpu import ( "log" "git.elyanpoujol.fr/elyan/central-arch/pkg/instr" "git.elyanpoujol.fr/elyan/central-arch/pkg/siminstr" ) const instrMask = 0x7f func (cpu *Cpu) RegisterInstr(desc siminstr.SimInstrDesc) { // TODO Implement it log.Printf("Registered: %s\n", desc.InstrDesc.VariantName) } func (cpu *Cpu) GetOpCode(i instr.Instr) uint32 { return uint32(i & instrMask) } func (cpu *Cpu) GetFormat(i instr.Instr) instr.InstrFormat { panic("Not implemented yet") } func (cpu *Cpu) Decode(i instr.Instr, decodedInstr *instr.DecodedInstr) { panic("Not implemented yet") }