Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer in MIPS code. Add code to the following code to do following: # make room on the stack for our variables # save

Please answer in MIPS code. Add code to the following code to do following: 

# make room on the stack for our variables

# save our return address

# print the CR

# calculate the EA of the font we have an INDEX to

# Print the character field of the font you have an INDEX to

# print the COLON

# if glyph invalid, say so

# otherwise, in a loop - print each BYTE of data as an unsigned int

# when done, ALWAYS restore the $ra register and $sp stack pointer

 .data FONTDATASIZE = 64 GLYPHSIZE = 68 glyph: .struct character: .byte 0 valid .byte 0 data: .word 0:16 .data font: .byte 'A,0 .word 0:16 .byte 'B,0 .word 0:16 .byte 'C,0 .word 0:16 .byte 'D,1 .word 0x00000000,0x00800100,0x00FFFF00,0x00800100,0x00800100,0x00800100,0x00800100,0x00800100 .word 0x00800100,0x00800100,0x00800100,0x00800100,0x00800100,0x00400200,0x003FFC00,0x00000000 .byte 'E,1 .word 0x00000000,0x00FFFF00,0x00FFFF00,0X00C18300,0X00C18300,0X00C18300,0X00C18300,0X00C18300 .word 0X00C18300,0X00C18300,0X00C00300,0X00C00300,0X00C00300,0X00C00300,0X00C00300,0x00000000 .byte 'F,1 .word 0x00000000,0x00800000,0x00FFFF00,0x00FFFF00,0x0080C300,0x0000C300,0x0000C300,0x0000C300 .word 0x0000C300,0x0000C300,0x0000C300,0x0001E300,0x00000300,0x00000300,0x00000700,0x00000000 .byte 'G,1 .word 0x00000000,0x00000000,0x000FF000,0x001FF800,0x003FFC00,0x00600600,0x00600600,0x00600600 .word 0x00600600,0x00638600,0x00638600,0x007F8E00,0x003F8C00,0x00038000,0x00038000,0x00000000 .byte 'H,0 .word 0:16 .byte 'I,1 .word 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00FFFF00,0x00FFFF00 .word 0x00FFFF00,0x00FFFF00,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000 .byte 'J,1 .word 0x00000000,0x00FF0300,0x00FF0300,0x00C00300,0x00C00300,0x00C00300,0x00C00300,0x00FFFF00 .word 0x00FFFF00,0x00000300,0x00000300,0x00000300,0x00000300,0x00000300,0x00000300,0x00000000 .byte 'K,0 .word 0:16 .byte 'L,1 .word 0x00000000,0x00FFFF00,0x00FFFF00,0x00C00000,0x00C00000,0x00C00000,0x00C00000,0x00C00000 .word 0x00C00000,0x00C00000,0x00C00000,0x00C00000,0x00C00000,0x00C00000,0x00C00000,0x00000000 .byte 'M,1 .word 0x00000000,0x00FFFF00,0x00FFFF00,0x00000700,0x00000E00,0x00001C00,0x00003800,0x0000F000 .word 0x0000F000,0x00003800,0x00001C00,0x00000E00,0x00000700,0x00FFFF00,0x00FFFF00,0x00000000 .byte 'N,0 .word 0:16 .byte 'O,1 .word 0x00000000,0x00FFFF00,0x00FFFF00,0x00C00300,0x00C00300,0x00C00300,0x00C00300,0x00C00300 .word 0x00C00300,0x00C00300,0x00C00300,0x00C00300,0x00C00300,0x00FFFF00,0x00FFFF00,0x00000000 .byte 'P,1 .word 0x00000000,0x00FFFF00,0x00FFFF00,0x0000C300,0x0000C300,0x0000C300,0x0000C300,0x0000C300 .word 0x0000C300,0x0000C300,0x0000C300,0x0000C300,0x0000C300,0x0000FF00,0x0000FF00,0x00000000 .byte 'Q,1 .word 0x00000000,0x00000000,0x0007F000,0x00181800,0x00300C00,0x00200400,0x00400200,0x00400200 .word 0x00400200,0x00440200,0x00380400,0x00100C00,0x00281800,0x0047F000,0x00000000,0x00000000 .byte 'R,0 .word 0:16 .byte 'S,0 .word 0:16 .byte 'T,0 .word 0:16 .byte 'U,1 .word 0x00000000,0x00FFFF00,0x00FFFF00,0x00C00000,0x00C00000,0x00C00000,0x00C00000,0x00C00000 .word 0x00C00000,0x00C00000,0x00C00000,0x00C00000,0x00C00000,0x00FFFF00,0x00FFFF00,0x00000000 .byte 'V,0 .word 0:16 .byte 'W,0 .word 0:16 .byte 'X,0 .word 0:16 .byte 'Y,0 .word 0x00000000,0x00000000,0x00000100,0x00000200,0x00000600,0x00000C00,0x00001800,0x00FFF000 .word 0x00FFF000,0x00001800,0x00000C00,0x00000600,0x00000200,0x00000100,0x00000000,0x00000000 .byte 'Z,0 .word 0:16 .data updatedMessage: .asciiz "aDe.FG
                                    

Answered: 1 week ago

Question

=+ For what reasons can and do unions go on strike?

Answered: 1 week ago

Question

=+ Is secondary industrial action common and/or legal?

Answered: 1 week ago