I need some help on converting a 12 bit machine code to machine language like a parser. I would like to write it in c code.
For example, by inputing: '000 00 01 01001'
it should return: 'op code 000, source register is 0, dest. register is 1 and the immediate value is 9 (base 10).
Please help.
For example, by inputing: '000 00 01 01001'
it should return: 'op code 000, source register is 0, dest. register is 1 and the immediate value is 9 (base 10).
Please help.