Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Write a code that decrements AL. If number is not signed (if positive) jump to label NEXT. 2) Write a code that adds signed

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
1) Write a code that decrements AL. If number is not signed (if positive) jump to label NEXT. 2) Write a code that adds signed byte in AL and BL. Jump to label DONE if no overflow. 3) Run the code. include 'emu8086, inc' ORG 100H MOV AL,0000011b OR AL,0; JUST SET FLAGS JNS LABEL PRINT 'SIGNED' JMP EXIT LABEL: PRINT 'NOT SIGNED' EXIT: RET After the execution, what will be written on the emulator screen? 4) Write a code that compare AL with 25. At first, contents of AL is 5. If first operand is not above and not equal to second operand, jump to LABEL and print 'Al>=25 '. 5) Write a code that compare AX with 50 . At first, contents of AX is 100 . If first operand is not below second operand, jump to LABEL and print ' AXX>=50, otherwise print 'AX 10. 7) Write a code that content of AL is 10. Compare with 10. If numbers are equal, Jump to label NEXT and print " AL is equal to 10. otherwise print AL. is not equal to 10. 8) Write a code that compare BL with -5. At first, contents of BL is 8 . If first operand is not less 4. Of 5 2cond operand, jump to LABEL and print ' BL >5, otherwise print " BLAX is 00100011 b. Jump to label NEXT if no parity (odd) and print "parity odd', otherwise print "parity even". (Don't forget that set flags) HOMEWORK: 1) Write a code that subtracts 25 from AL. At first, contents of AL is 5 . If no overflow jump to label NEXT and print 'no overflow', otherwise print 'overflow'. Run the code. After the execution what will be written on the emulator screen? 2) Write a code that desires. At first, contents of AL is 10000000b. If AL is negative number then jump to label NEXT and print 'signed', otherwise print 'not signed'. (Don't forget that set flags) Run the code. After the execution what will be written on the emulator screen? 3) What are the STD, CLD, STI, CLI, STC, CLC and CMC? Explain each one in a sentence. STD. CLD. STI. CLI. STC. CLC. CMC. EXTRA POINT: (5 POINTS) Write a code that desires. At first, contents of AL is 10100100b. If AL is not zero jump to label EXTRA and print 'not zero', otherwise print "zero'. (Don't forget that set flags) Run the code. After the execution what will be written on the emulator screen

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Explain basic guidelines for effective multicultural communication.

Answered: 1 week ago

Question

Identify communication barriers and describe ways to remove them.

Answered: 1 week ago

Question

Explain the communication process.

Answered: 1 week ago