example0 - * file = example0.asm * Quick examples of...

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

View Full Document Right Arrow Icon
* file = example0.asm * Karl Gugel and Eric Schwartz, 17 Aug 2001 * * SRAM is at 1040-7FFF Hex on an memory-expanded 68HC11 board. * * Data can go before or after your program but should * not in the middle of a program for clarity reasons. org $1100 ;these are all assembler directives num1 fcb $FF ;single byte placed in memory starting at $1100 num2 fdb $1234 ;double byte placed in memory char fcc 'E' ;ASCII characters (one byte each) fcc 'E' fcc 'L' fcc '3' fcc '7' fcc '0' fcc '1' results rmb 3 ;reserved space for future use ; org $1180 value1 fcb 27 ;put 27 decimal in mem @ $1180 value2 fcb 30 ;put 30 decimal in mem @ $1181 sum rmb 1 ;reserve a byte for a future sum ; * Special Note: Assembler directives are used to place data * and variables into memory. They are not 6811 * instructions and thus are not executed at run * time. When this program is loaded into memory, * the data (created above by the assembler) is also
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

example0 - * file = example0.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