SFU - CMPT 150 - Assignments - 5 - Instruction Set

SFU - CMPT 150 - Assignments - 5 - Instruction Set - c...

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

View Full Document Right Arrow Icon
c ± A.H.Dixon CMPT 150 : Assignment 5 Instruction Set 1 HC-12 ASSEMBLY LANGUAGE SUBSET for Assignment 5 MODES: XX(Y) denotes that opcode XX (hex) uses Y bytes/instruction INST FUNCTION INH IMM DIR EXT INDX REL ABA A A + B 1806(2) ADDA A A + (M) 8B(2) 9B(2) BB(3) AB(2) ADDB B B + (M) CB(2) DB(2) FB(3) EB(2) BEQ If Z Then PC ”addr” (see pg. 2) 27(2) BGE If N’ Then PC ”addr” (see pg. 2) 2C(2) BLT If N Then PC ”addr” (see pg. 2) 23(2) BNE If Z’ Then PC ”addr” (see pg. 2) 26(2) BRA PC ”addr” (see pg. 2) 20(2) CLRA A 0 87(1) CLRB B 0 C7(1) CMPA If A < (M) C 1, if A=(M) Z 1 81(2) 91(2) B1(3) A1(2) CMPB If B < (M) C 1, if B=(M) Z 1 C1(2) D1(2) F1(3) E1(2) CPX If X < (M,M+1) C 1, If X = (M,M+1) Z 1 8E(3) 9E(2) BE(3) AE(2) CPY If Y < (M,M+1) C 1, If Y = (M,M+1) Z 1 8D(3) 9D(2) BD(3) AD(2) DES SP SP - 1 1B9F(2) DEX IX IX - 1 09(2) DEY IY IY - 1 03(2) INS SP SP - 1 1B81(2) INX IX IX - 1 08(2)
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 06/20/2010 for the course CMPT 150 taught by Professor Dr.anthonydixon during the Spring '08 term at Simon Fraser.

Page1 / 2

SFU - CMPT 150 - Assignments - 5 - Instruction Set - c...

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