ex1.asm - ex1.asm ;* ; file = ex1.asm ; Quick examples of...

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

View Full Document Right Arrow Icon
ex1.asm ;**************************************************************************************** ; file = ex1.asm ; Quick examples of adds, subtracts and compares for conditional branching. ; Dr. Karl Gugel, Sept/2009 ; ; To be assembled using Code Composer Studio which requires a linker command ; file to tell CCR where to place code & data into DSP SRAM. ; The command file used = KG_RAM_link1.cmd ; Important Code locations: ; .text RAML1 (internal DSP memory) starting address = 09000 Hex, 4K Words ; .data RAML2 (internal DSP memory) starting address = 0A000 Hex, 4K Words ; .global _c_int00;This assembler directive allows _c_int00 to be a global variable. ;This tells the linker where your program (.text) begins and where to boot. ; ;**************************************************************************************** ;******************** Brief Introduction to CPU Model *********************************** ; CPU Registers: ; ACC Accumulator (32 bits) comprised of AH (upper 16 bits) and AL (lower 16 bits) ; XAR0 Auxiliary Register0 (32 bits) comprised of AR0H (upper 16 bits) and AR0 (lower 16 bits)
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.

Page1 / 2

ex1.asm - ex1.asm ;* ; file = ex1.asm ; Quick examples of...

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