Question: Please answer in MIPS code. Using the following code to calling the following PrintGlyphStructure function on EVERY valid A-Z character PrintGlyphStructure: # make room on
Please answer in MIPS code.
Using the following code to calling the following PrintGlyphStructure function on EVERY valid A-Z character
PrintGlyphStructure:
# 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,0 .word 0:16 .byte 'E,1 .word 0x00000000,0x00FFFF00,0x00FFFF00,0X00C18300,0X00C18300,0X00C18300,0X00C18300,0X00C18300 .word 0X00C18300,0X00C18300,0X00C00300,0X00C00300,0X00C00300,0X00C00300,0X00C00300,0x00000000 .byte 'F,0 .word 0:16 .byte 'G,0 .word 0:16 .byte 'H,0 .word 0:16 .byte 'I,0 .word 0:16 .byte 'J,0 .word 0:16 .byte 'K,0 .word 0:16 .byte 'L,0 .word 0:16 .byte 'M,0 .word 0:16 .byte 'N,0 .word 0:16 .byte 'O,0 .word 0:16 .byte 'P,0 .word 0:16 .byte 'Q,0 .word 0:16 .byte 'R,0 .word 0:16 .byte 'S,0 .word 0:16 .byte 'T,0 .word 0:16 .byte 'U,0 .word 0:16 .byte 'V,0 .word 0:16 .byte 'W,0 .word 0:16 .byte 'X,0 .word 0:16 .byte 'Y,0 .word 0:16 .byte 'Z,0 .word 0:16 .data vowelMessage: .asciiz "ae.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
