CSC258H1 Lecture Notes - Louisiana Baptist University, Infinite Loop, In C

32 views1 pages
20 Apr 2013
School
Course
Professor

Document Summary

Week 10 review q5 (from 2011/2012 winter part d q3) Intracting with memory: wirte a short assembly language program that is a translation of the program on the right. End: j end: stack, all programs have access to it. Stackpointer () points to first available spot in stack. B/c to account for empty stack case. For obtaining values to work with, and returning values. Store variables that needs to be communicated to other programs. Most of time passing value through stack b/c large enough to hold any size inputs (vs. registers) For storing variables that needs to be saved when handing control to another program: load & store instructions. The address in memory needed for load/store is in register . B = byte = 1 byte = 8bits -ex. characters. H = halfword = 2 bytes = 16bits. W = word = 4 bytes = 32bits -ex. instructions, ints.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents