嵌入式汇编高手请进!!!

2011年10月10日 16:53    发布者:313343547
下面的程序啥意思呀,高手解释一下!!!谢谢
1:what value is stored in m in the following assembly language code fragment if n=7?

LDAA #n

LABEL1: CMPA #5

BHI L3

BEQ L2

DECA

BRA L1

LABEL2: CLRA

LABEL3: STAA #m

2:Assume the BC register value is 8538H, and the DE register value is 62A5H.Find the value of register BC after the following assembly operations:

MOV A,C

SUB E

MOV C,A

MOV A,B

SBB D

MOV B,A

3:In the Assembly code shown below

LOOP: MVI C,78H

DCR C

JNZ LOOP

HLT

How many times is the DCR C Operation executed?

网友评论

原野之狼 2011年10月11日
对照处理器的汇编手册 一条条分析就是了 不要犯懒
313343547 2011年10月11日
回复2楼原野之狼:



大哥呀我知道 找汇编手册,但是问题在我找了很多,好像这几个比较乱,有IBM的,有8086的,有C51的,这几个题好像是混合版的,我确定不了这几个题是那种汇编,后者说那种芯片的汇编!请高手指个明路