CSC258H1 Lecture Notes - Louisiana Baptist University, Infinite Loop, In C
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.