Programmable Logic Controllers
Programmable Logic Controllers
5th Edition
ISBN: 9780073373843
Author: Frank D. Petruzella
Publisher: McGraw-Hill Education
Question
Book Icon
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.

Blurred answer
Students have asked these similar questions
if a program has 471 bytes and will be loaded into page frames of 100 bytes each, and the instruction is to be used at bytr 132, answer the following question: how many pages are needed to do the entire job?
Write an assembly program to set R0=1 if there's a 5 in one of ten memory locations, starting at x3100. At the beginning of the program, set R0 = 0.  If no 5 is found, it should leave R0 set to 0.   If a 5 is found, output the following message to the console. "A 5 was found at x31xx." 31xx is the hex address of the 5.
Write an assembly program such that: a. When the least significant bit of registers R4 and R5 have the value 1, the register R9 gets the value 0FF0h. b. When only one of the least significant bits of either register R4 or R5 has the value 1, the one’s complement of the value in register R9 will be saved in register R10. please use assembly code (ex: mov.w, and.w )
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education