SFU - CMPT 150 - Assignments - 4 - Instruction Set

SFU - CMPT 150 - Assignments - 4 - 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 4 Instruction Set 1 HC-12 ASSEMBLY LANGUAGE SUBSET for Assignment 4 MODES: XX(Y) denotes that opcode XX (hex) uses Y bytes/instruction INST FUNCTION INH IMM DIR EXT NDX 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) IDIV IX quot(D/IX), D rem(D/IX) 1810(1) LDAA A (M) 86(2) 96(2) B6(3) A6(2) LDAB B (M) C6(2) D6(2) F6(3) E6(2) LDX IX (M) CE(2) DE(2) FE(3) EE(2) STAA M A 97(2) B7(3) A7(2) STAB M B D7(2) F7(3) E7(2) STX M IX 5E(2) 7E(3) 6E(2) XGDX IX D, D IX B7C5(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 - 4 - 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