Programmable Logic Controllers
5th Edition
ISBN: 9780073373843
Author: Frank D. Petruzella
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Chapter 10, Problem 8P
Program Plan Intro
Masked Move (MVM) instruction:
- MVM instruction refers to a word instruction.
- It is used to move data from source to destination and allows a portion of destination data to be masked by a separate word.
- The function of MVM instruction is almost similar to that of MOV instruction, except that a masked move allows the data to be filtered out which is not required to be moved.
Terms used:
The following terms are used in the instruction
- Source
- Source refers to the address of the piece of data that is used in the instruction.
- Destination
- Destination refers to the address where the results of the instruction are stored.
- Mask
- Mask refers to the address of the mask through which the instruction moves the required data.
- The mask can be either a constant value or hexadecimal value.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Registers in RISC-V are 64-bit. For the sake of simplicity, consider the following instructions operating on 32-bit registers. Assume that registers x5 and x6 hold the values 0xBBBBBBBB and 0x00000000, respectively.
What is the value in x6 for the followingslli x6, x5, 6
Using the result from the part above, what is the value in x6 for the following instruction. srli x6, x6, 6
using 8086 microprocessor
There is an application that requires the following hardware: an Intel 8031, a Program ROM of 8Kx8, a Data ROM of 4Kx8 for look-up tables and a Data RAMs of 8Kx8. The memory map of the design: Program ROM should start at address 0000H. Then, the Data ROM should come above the Program ROM. Finally the Data RAM must go to the top of the memory map. There should be no gaps between the memory addresses of the external ROMs.
Calculate the address space of the ROMs and RAMs of your design.
Chapter 10 Solutions
Programmable Logic Controllers
Ch. 10 - In general, what do data manipulation instructions...Ch. 10 - Prob. 2RQCh. 10 - Prob. 3RQCh. 10 - Prob. 4RQCh. 10 - Prob. 5RQCh. 10 - Prob. 6RQCh. 10 - Prob. 7RQCh. 10 - Prob. 8RQCh. 10 - Prob. 9RQCh. 10 - Prob. 10RQ
Ch. 10 - Prob. 11RQCh. 10 - Prob. 12RQCh. 10 - Prob. 13RQCh. 10 - Prob. 14RQCh. 10 - Prob. 15RQCh. 10 - Prob. 16RQCh. 10 - Prob. 17RQCh. 10 - Prob. 18RQCh. 10 - Prob. 19RQCh. 10 - Prob. 20RQCh. 10 - Prob. 21RQCh. 10 - Prob. 22RQCh. 10 - Prob. 1PCh. 10 - Prob. 2PCh. 10 - Prob. 3PCh. 10 - Prob. 4PCh. 10 - Prob. 7PCh. 10 - Prob. 8PCh. 10 - Prob. 9PCh. 10 - Prob. 10PCh. 10 - Write a program that will cause a light to come on...Ch. 10 - Write a program that will cause a light to come on...
Knowledge Booster
Similar questions
- There is an application that requires the following hardware: an Intel 8031, a Program ROM of 8Kx8, a Data ROM of 4Kx8 for look-up tables and a Data RAMs of 8Kx8. The memory map of the design: Program ROM should start at address 0000H. Then, the Data ROM should come above the Program ROM. Finally the Data RAM must go to the top of the memory map. There should be no gaps between the memory addresses of the external ROMs. Show the design’s address space on a memory map, starting with 0000H at the bottom and FFFFH at the top.arrow_forward2- Write a program in assembly language for the 8085 microprocessor to receive 10 bytes of data via the SID and store it at the memory address (3000h) using a baud rate of 1200. And two high pulses must be sent before each byte (start bits) and one low pulse after each byte (end bits). You can use this flowchart, but you should notice that this flowchart deals with one byte, and you are required to deal with 10 bytes No CDD CHHICE 10 Yes SIDATA Read SID Start Bit? Wait for Half-Bit Time Set up Bit Counter Wait Bit Time Read SID Save Bit Decrement Bit Counter All Bits Received? Add Bit to Previous Bits Go Back to Get Next Bit Returnarrow_forwardQuestion 1 Write a MIPS assembly language program that collects all the '0' bits at the left edge and all the '1' bits at the right edge for a 32-bit number stored in register $a0. This output sequence should be stored in register $v0 and your program should finish in an infinite loop (a jump instruction that jumps to itself). For example: If $a0 contains 1111 0000 1111 0000 1111 0000 1111 0000 in binary (OXFOFOFOFO) the output sequence stored in $v0 with all the '0' bits moved to the left edge and all the '1' bits moved to the right edge should be as follows: 0000 0000 0000 0000 1111 1111 1111 1111 (0X0000FFFF)arrow_forward
- coding/programarrow_forwardConsider each of the following cases, and determine when the instruction's bytes are "complete" (all bytes are specified and do not need to be changed further). Answer the following with "at assembly time," "at linkage time," or "at runtime." a. lea rax, [abs msg] ; msg is a location in the same section b. lea ax, [zel msg) ; msg is a location in the same section C. lea rax, [xel msg] ; msg is a location in a different section of your program d. lea rax, [ errno location] errno location is in a statically-linked library е. lea rax, I errno location] errno location is in a dynamically-linked libraryarrow_forward8086Mp memory is logically divided into segments, the size of each segment is: 1Mbyte 64Kbyte 128Kbyte 2Kbyte 10Kbyte 32Кbyte 1Kbyte Let CS=5A71H, IP=BF6CH. What is the name of the memory segment given in the following figure AFTER executing the instruction (CALL [BX+DI] )? if IPnew=8C23H. * BF H 6F80BH 6C H 6F80AH Extra segment Stack segment Code segment Data segmentarrow_forward
- Q1:/ Show the contents in hexadecimal of registers PC, AR, DR, AC, IR and SC of the basic computer when an instruction at address 021 in the basic computer has I = 1, an operation code of the ADD instruction, and an address part equal to 051. The memory word at address 051 contains 0083. The memory word at address 083 contains B8F2. The memory word at address 038 contains A837 and the content of AC is A937. Give the answer in a table with six columns, one for each register and a row for each timing signal. (All numbers are in hexadecimal) uipors - eaarrow_forwardQ1/ Two word - wide unsigned integers are stored at the physical memory addresses 0400H and 0402H respectively. Write an instruction sequence that computes and stores their sum, difference, product, and quotient. Store these results at consecutive memory locations starting at physical address 0410H in memory. To obtain the difference, subtract the integer at 0402H from the integer at 0400H. For the division, divide the integer at 0400H by the integer at 0402H. Use the register indirect relative addressing mode to store the various result.arrow_forwardwrite a program in ( assembly language (8086) )that compare two blocks of 64 consecutive bytes, the first block starting at address 0020 H in the current data segment 0300 H & the Second block starts at 0020 H in the current extra segment 0500 H. if the blocks is symmetrical put 0FF0 H in register BX otherwise put 0000H.arrow_forward
- Q1- Write a program in assembly language for the 8085 microprocessor to receive 10 bytes of data via the SID and store it at the memory address (3000H to 3009H) using a baud rate of 1200. Information: The 8085 processor operates at a frequency of 3.072 MHz. When you receive each byte of the required bytes, you must adhere to the following: The bits of two high bits will be received at the beginning of the reception (start bits), after that the data bits will be received, after that the low bit of the stop bit will be received (stop bit). The following flowchart will help you, but you should notice that this flowchart deals with one byte, and you are required to deal with 10 bytes The solution must be integrated and include the calculation of the baudrate delay time Of+CD!HID+[00 Yes SIDATA Read SID Start Bit? Wait for Half-Bit Time Set up Bit Counter Wait Bit Time Read SID Save Bit Decrement Bit Counter All Bits Received? Add Bit to Previous Bits Go Back to Get Next Bit Return IMUNIarrow_forwardTask #1 - Write a MIPS assembly program that reads two integers from the user x & y. If y is zero, raise an exception and the user should be prompted to enter a different value of y. If y is not zero, perform the operation x/y. (Hint: use trap instruction after reading y) Sample Run of the task Enter Dividend (x): 10 Enter Divisor (y): 0 Divide By Zero Exception. Please enter a different value for y. Enter Divisor (y): 2 The result of x /y is 5 6.39 PM ENG 3/6/2022arrow_forwardWrite an assembly program that reads from PORTA. If bit 5 of PORTA is high then it writes 4× PORTA in PORTB; otherwise, it writes PORTA+3 in PORTB. You cannot use multiply instruction in your program.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education