SFU - CMPT 150 - Labs - 9

SFU - CMPT 150 - Labs - 9 - c A.H.Dixon Laboratory Exercise...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: c A.H.Dixon Laboratory Exercise 9 1 ASSEMBLY LANGUAGE PROGRAMMING III 1. The first exercise helps you to better understand the consequences of adopting a von Neu- mann computer architecture when designing the CPU. The HC-12 is an verbatim of such an architecture. Therefore it is possible to interpret a binary sequence stored in memory as either an instruction or as data. (a) Begin by entering the following program into the HC-12 template. The org declarations are included her for reference. Do not enter them unless you have deleted them from the template: org $0000 DATA: dc.b $3F,$96,$86,$5F,$20,$FA org $0800 ENTRY: ldaa #1 bra DATA swi nop (b) Run the simulator, but do not execute the program. Instead, Answer the following questions by examining the simulation windows: i. What binary number is stored at location 0000 ? ii. If what is at location 0000 is interpreted as an instruction opcode, what instruction is it? Refer to the attached reference sheet....
View Full Document

Page1 / 3

SFU - CMPT 150 - Labs - 9 - c A.H.Dixon Laboratory Exercise...

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