7 a program segment which will decrement the contents of the
7 a program segment which will decrement the contents of the label COUNT until it [15 pts.] Write reaches zero, at which point the program will go to the label HERE. coUNT contains a HEX ic or its complement. COUNT HExic LAREL DECFSL COUNT 1 GOTO LABEL GOTO HERE HERE
Solution
Yup,your code is correct. You decremented the value. But,here we need to increment the value. So ,if the number is negative and we go-on increment untill it reaches zero then we can get the same no.of clock cycles. So,in order to get same number as negative which can be acheived by 2\'s complementing the value
given value =HEX1C -> 2\'s complement -> HEXE4. So,now the code would be
![7 a program segment which will decrement the contents of the label COUNT until it [15 pts.] Write reaches zero, at which point the program will go to the label 7 a program segment which will decrement the contents of the label COUNT until it [15 pts.] Write reaches zero, at which point the program will go to the label](/WebImages/44/7-a-program-segment-which-will-decrement-the-contents-of-the-1138241-1761609800-0.webp)