CS计算机代考程序代写 .globl main

.globl main

.data
KEYBOARD_EVENT_PENDING:
.word 0x0
KEYBOARD_EVENT:
.word 0x0
KEYBOARD_COUNTS:
.space 128
NEWLINE:
.asciiz “\n”
SPACE:
.asciiz ” ”

.eqv LETTER_a 97
.eqv LETTER_space 32

.text
main:
# STUDENTS MAY MODIFY CODE BELOW
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

check_for_event:
la $s0, KEYBOARD_EVENT_PENDING
lw $s1, 0($s0)
beq $s1, $zero, check_for_event

.kdata

.ktext 0x80000180
__kernel_entry:

__exit_exception:
eret

# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# STUDENTS MAY MODIFY CODE ABOVE