Itec 352
This presentation is the property of its rightful owner.
Sponsored Links
1 / 7

ITEC 352 PowerPoint PPT Presentation


  • 68 Views
  • Uploaded on
  • Presentation posted in: General

ITEC 352. Lecture 14 ISA(6). Review. Questions? Beginning / End Memory locations Variable / Memory syntax PSR Loops / Branches. More assembly. What does the program I show you do? How important are comments in assembly?

Download Presentation

ITEC 352

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Itec 352

ITEC 352

Lecture 14

ISA(6)


Review

Review

  • Questions?

  • Beginning / End

  • Memory locations

  • Variable / Memory syntax

  • PSR

  • Loops / Branches


More assembly

More assembly

  • What does the program I show you do?

  • How important are comments in assembly?

  • How would we write a JAVA program that would produce similar assembly?

  • What are the benefits / downsides of each approach to writing the software?

  • Why are the memory locations offset by 4?


Conditionals

Conditionals

How would you use these

conditionals?

  • ba

    • Always branch

  • bne

    • Brach when Z is not 0

  • be

    • Branch when Z is 0

  • bg /bgeble

    • Branch when not (Z or (N xor V))

  • bpos / bneg

    • Branch when negative bit is on or off

  • bv(c/s)

    • Overflow bit cleared or set


Jumping

Jumping

  • call

    • Goto a specific label in the program (memory where label is must be within 30 bits of the call statement)

    • Saves location of where call is in %r15

  • jmpl

    • Goto a specific address and store the location of the jmpl in %r15


Shifty

Shifty

  • Shift right (srl)

    • Shift a register by a certain % of bits and store the result in another register (0s are padded)

    • Syntax?

  • Shift left (sll)

    • Instead of the right, go left

  • Why is shifting bits important?


Summary

Summary

  • Assembly instructions / simple program


  • Login