please do not copy from previous posted answer
INCLUDE Irvine32.inc
.data
nums DB 4,0,0,12,6,-1,0,4,2
count DB 0
.code
main proc
mov ecx,lengthof nums
mov esi,0
l1:
cmp nums[esi],-1 ;number == -1 jmp to exit
je ex ;ex=exit
cmp nums[esi],0 ;if number == 0 count=count+1
je l2
jmp l3
l2:
inc count
l3:
inc esi ; increase ind of array
loop l1 ;loop through all elements
ex:
mov eax,0
mov al,count
call writeint
exit
main endp
end main
;Test Case 1
;Test Case 2
;Comment For any query
;Please Give a THUMBS UP
please do not copy from previous posted answer 6. Determine the next state and output logic....
2. Write an 80x86 assembly language program that reads byte size signed integers from memory and counts the number of zeros. Store this count in memory. End when you get a negative number. (20pts) For example: nums DB 4, 0, 0, 12, 6, 8, 0, 4, -1 count DB 0 after executing the procedure count should be 3 count DB 3.
please do not copy from previous posted answer (20pts) 6. Assume that a data segment in 80x86 Assembly has the following declarations: dw 1ABBH W х db 16 у db 'wxy' Z dw -26, 11 address 00. Show the values as they would appear in debug. Assume the memory starts Address 00 01 02 03 04 05 06 07 08 09 Value Given the above data segment, play computer with the following code and show the final hexadecimal values of...
1. Write the logic equations of the next state variables A, B+ and the output variable Z as a function of A, B,X for the following circuit (30 points) В' DB Clock Clock A" =x@g | _. ζ A' X 2. Please complete the following 3 questions: (e Fill up the next state table of the sequential cireuit shown in Question 1. (10 points) (b) Draw the state graph of the sequential circuit shown in Question 1. (10 points) (c)...