aLec04_ArchAddrMem

aLec04_ArchAddrMem - Introduction to Embedded Microcomputer...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction to Embedded Microcomputer Systems Lecture 4.1 Jonathan W. Valvano Recap Programmer must keep track of format Precision, decimal digits, basis, ASCII Unsigned, signed (2’s complement) Big and little endian Overview Architecture, registers Addressing Modes Memory Allocation Architecture: how pieces are connected together Figure 2.3. The memory model of a simplified 9S12 computer. To clarify operations that read/write memory, we will the following notation in this book =[U] specifies an 8-bit read from address U ={U} specifies a 16-bit read from addresses U, U+1 (most significant byte first) [U]= specifies an 8-bit write to address U {U}= specifies a 16-bit write to address addresses U, U+1 (most significant byte first) ldaa #w ;RegA=w ldaa U ;RegA=[U] staa U ;[U]=RegA bra U ;PC=U The ldaa $3800 instruction reads data from memory The staa PTT instruction stores CC D X Y SP PC 8 bit condition code two 8 bit accumulators 16 bit index register 16 bit index register 16 bit stack pointer 16 bit program counter 7 0 15 XH Register A Register B SI N Z V C
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/19/2010 for the course E E 16280 taught by Professor Valvano during the Fall '10 term at University of Texas.

Page1 / 3

aLec04_ArchAddrMem - Introduction to Embedded Microcomputer...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online