Question

6. Determine the next state and output logic. a. Use combinational logic for next state and output b. Explain if you built a

please do not copy from previous posted answer

0 0
Add a comment Improve this question Transcribed image text
Answer #1


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

windows De asm X 1 2 3 4 5 6 INCLUDE Irvine32.inc .data nums DB 4,0,0,12,6,8,0,4,-1 count DB 0 O Microsoft Visual Studio Debu

;Test Case 2

Debug X8b Local Windows Debugger Till Cest.asm X Microsoft Visual Studio Debug Console +2 INCLUDE Irvine 32.inc .data nums DB

;Comment For any query

;Please Give a THUMBS UP

Add a comment
Know the answer?
Add Answer to:
please do not copy from previous posted answer 6. Determine the next state and output logic....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 2. Write an 80x86 assembly language program that reads byte size signed integers from memory and...

    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...

    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...

    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)...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT