Y86 Data Movement Instructions Quiz

IntuitiveHippopotamus avatar
IntuitiveHippopotamus
·
·
Download

Start Quiz

Study Flashcards

20 Questions

What does an immediate operand represent in Y86?

A constant value

In Y86, which type of instruction affects both read and write operations on the destination operand?

ALU instructions

What kind of operands do all 4 ALU instructions in Y86 use?

Two register operands

Which type of Y86 instructions set the 3 flags used in the architecture?

ALU instructions

How are address expressions for memory operands structured in Y86?

(BASE + DISP)

What happens to the flags when non-ALU instructions are executed in Y86?

They remain unaffected

Which type of jump instruction is unconditional in Y86?

jmp

What must be the condition of flags for a 'je' instruction to take the jump in Y86?

'ZF = 1'

'jg' instruction in Y86 stands for:

'Jump greater'

'rrmovq' instruction in Y86 is used for:

'Register-register move'

What happens when a jump (or branch) is not taken in Y86?

The next instruction executed will be the one immediately after the jump instruction

How does the stack grow in memory when new data is pushed onto it in Y86?

It grows downward; towards lower addresses

What is the purpose of saving the calling subroutine's rbp before setting its own base/frame pointer?

To allow for restoration of the calling subroutine's base/frame pointer

In Y86, how are parameters passed on the stack?

They are pushed onto the stack in reverse order

What does each subroutine in Y86 receive to use as a portion of the stack?

A frame

What is always pushed onto the stack after all parameters when calling a subroutine?

The return address

What do labels represent in Y86?

Strings that mark addresses in memory

What are two things that the call instruction in Y86 accomplishes?

Pushes parameters onto the stack and jumps to a target location

What do the pushq and popq instructions do in Y86?

Push data onto and pop data off the stack, respectively

What two things does the ret instruction do in Y86?

Restores the caller's base pointer and returns control to caller

Test your knowledge on the data movement instructions rrmoq, irmovq, rmmovq, and mrmovq in Y86 architecture. Understand the functionality of source and destination operands, immediate operands, and how they are read or written in Y86 instructions.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free
Use Quizgecko on...
Browser
Browser