My program loop by its own

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

My program loop by its own

568 Views
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!

Labels (1)
0 Kudos
1 Reply

226 Views
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 Kudos