Question: Use the template below to implement a key cursor implementation which uses IO, Malloced global storage and a switch statement (Assembly Language) ile Edit View
ile Edit View Breakpoint Settings Run Hetp Assembly SourceListing 147N Main 149 150 na in 151 L1 LI ss1, w $s2, 'a 553, 's 153 154 155 156 15 158 159 168 161 162 163 164 165 1o0p 166 167 168 169 ss5, 2 $s6, IaitScreen InitkeyInterrupts clearScreen al jal # Your code here [ AREA # 1) Prompt user to ente # 2) MALLOC storage for # 3) Read the username 1 4) Update the screen syscall sto Getkey # More of your code here # 5) Call GetKey 170 # 6) If key pressed 172 173 174 175 switch (on the pressed key ) bge addi s0,0x61,suitch 50,5s0,0x20 # tikely to be lower casechar acter # presume it needs to be converted to tower case 177swith beg ss0,5s1,caseUp # caselip Ialready irol einen ted belou) ile Edit View Breakpoint Settings Run Hetp Assembly SourceListing 147N Main 149 150 na in 151 L1 LI ss1, w $s2, 'a 553, 's 153 154 155 156 15 158 159 168 161 162 163 164 165 1o0p 166 167 168 169 ss5, 2 $s6, IaitScreen InitkeyInterrupts clearScreen al jal # Your code here [ AREA # 1) Prompt user to ente # 2) MALLOC storage for # 3) Read the username 1 4) Update the screen syscall sto Getkey # More of your code here # 5) Call GetKey 170 # 6) If key pressed 172 173 174 175 switch (on the pressed key ) bge addi s0,0x61,suitch 50,5s0,0x20 # tikely to be lower casechar acter # presume it needs to be converted to tower case 177swith beg ss0,5s1,caseUp # caselip Ialready irol einen ted belou)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
