Write a MIPS function emitchar that takes one argument andreturns nothing: $a0 a char (i.e. a MIPS word whose upper 3 bytesare all 0s) It writes (the low byte of) $a0 to the DISPLAY usingspin-waiting until the DISPLAY is ready to receive a character.That means: a) Read the Transmitter Control register (0xffff0008).b) If its ready bit is off goto (a). This loop is calledpolling. c) (Its ready bit must be on.) Store $a0into the Transmitter Data register (0xffff000c).