Question: how do I fix my code to make all my tests run correctly: Test input of all 1 ' s ( 0 / 2 0
how do I fix my code to make all my tests run correctly: Test input of all s
Test Failed: Failed: Program IO differs from expected IO:
should be:
Test input of random value
Test Failed: Failed: Program IO differs from expected IO:
should be:
Test input with in most significant bit and all other zero
Test Failed: Failed: Program IO differs from expected IO:
should be:
Test input of number that is a power of greater than
Test Failed: Failed: Program IO differs from expected IO:
should be:
Test input of all zeros ENDSEGMENTS
LD R NEWLINE ; Load ASCII newline character
OUT ; Output newline
HALT
;
;Data
;
Valueptr
NEWLINE
DEC
SPACE
TEMPCHAR
HEX
LEADING
; Remote data
Value FILL XABCD ; Value to be displayed as binary
FILL XB ; The address where value to be displayed is stored
FILL ; ASCII newline character
FILL # ; Counter for looping through bits
FILL ; ASCII space character
FILL ; ASCII value for a
FILL ; ASCII
FILL ; Mask for checking leading in MSB
FILL ; Mask for checking leading in MSB
FILL XABCD ; Value to be displayed as binary
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
