My program loop by its own

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

My program loop by its own

1,155件の閲覧回数
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 返信

813件の閲覧回数
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 件の賞賛
返信