# Assembly Language / Assembly Instructions (HC12)

Starting at address $0800, CE 00 31 9E 00 2D 01 08 18 06 3F A7 Determine the assembly instructions and indicate the addressing mode of each instruction. CE 00 31 =====> ldx #$ 01 ;x <-- 0031

9E 00 =====> cpx $0000 2D 01 =====> BLT$0001 ..? I'm stuck from this part ..

I need help ..

Thank you

I assume you must already have the 68HC12 instruction set reference; the big table that lists the address modes, machine coding, number of bytes, and affected flags for each instruction. And you already decoded 0x2D as BLT (branch if less than).
The tricky part is you have to be careful about whether it's relative to the program counter address of the BLT instruction itself, or the address of the next instruction. (This can be different for different types of microcontrollers.) This is explained in the reference manual.
• Does BLT $0001 means 'if x is less than$0001, branch "? or does $0001 represent new location? (org$0001)? – SMLJ Apr 6 '15 at 4:41