SFU - CMPT 150 - HC12 - Instruction Set

SFU - CMPT 150 - HC12 - Instruction Set - HC-12 ASSEMBLY...

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: HC-12 ASSEMBLY LANGUAGE SUBSET (1071)MODES: XX(Y) denotes the opcode XX(hex) uses Y bytes/instructionINSTFUNCTIONINHIMMDIREXTINDX RELABAA <- A + B1806(2)ADDAA <- A + (M)8B(2) 9B(2) BB(3) AB(2)ADDBB <- B + (M)CB(2) DB(2) FB(3) EB(2)BEQIf Z Then PC <- "addr" (see next page)27(2)BGEIf N’ Then PC <- "addr" (see next page)2C(2)BLTIf N Then PC <- "addr" (see next page)2D(2)BNEIf Z’ Then PC <- "addr" (see next page)26(2)BRAPC <- "addr" (see next page)20(2)CLRAA <- 087(1)CLRBB <- 0C7(1)CMPAIf A<(M) C <- 1, if A=(M) Z <- 181(2)91(2)B1(3) A1(2)CMPBIf B<(M) C <- 1, if B=(M) Z <- 1C1(2) D1(2) F1(3)E1(2)CPXIf IX<(M,M+1) C<-1, if IX=(M,M+1) Z<-18E(3)9E(2)BE(3) AE(2)CPYIf IY<(M,M+1) C<-1, if IY=(M,M+1) Z<-18D(3) 9D(2) BD(3) AD(2)DESSP <- SP-11B9F(2)DEXIX <- IX - 109(1)DEYIY <- IY - 103(1)INSSP <- SP + 11B81(2)INXIX <- IX + 108(1)INYIY <- IY + 102IDIVIX <- quot(D/IX), D <- rem(D/IX)1810(2)JSRPC <- "addr", M[SP-1,SP] <- "return addr"17(2)16(3)15(2)LDAAA <- (M)86(2)96(2)B6(3) A6(2)LDABB <- (M)C6(2) D6(2) F6(3)...
View Full 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 - HC12 - Instruction Set - HC-12 ASSEMBLY...

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