My program loop by its own

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

My program loop by its own

607 次查看
daphne
Contributor I

hi all...

i am currently using MC68HC908AB32. Program is written is assembly code.

I am very new to this software and assembly code.

I do not know how come my program loops by itself.

After i initialize all my variables,  i only did this.

 

(After Initialization and declaration)

.

.

JSR SETTING

JSR APPLY_SETTING  ; Main program ends here.

 

Hope to hear from someone soon!

Thanks!

标签 (1)
0 项奖励
回复
1 回复

265 次查看
eckhard
Contributor V

Hello,

 

after JSR APPLY_SETTINGS, the next opcode is loaded and programm execution continues.

If the JSR is the last command you have, then execution will step throug the rest of the memory until an illegal opcde or an illegeal adress is found. This causes a reset.

 

Eckhard

0 项奖励
回复