NOT RETURNING FROM SUB ROUTINE (PAGE SWITCHING)

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

NOT RETURNING FROM SUB ROUTINE (PAGE SWITCHING)

502件の閲覧回数
embitel
Contributor I

Hello everyone,

 

I am using code warrior 5.1 and MC9S12C128.PE MULTILINK DEBUGGER.

 

 

My application calls as subroutine which is in assembly file (page 0 /ROM C000) FROM PAGE 38.

 

When i do single step PPAGE is updated with 0 and after completion of subroutine the control is not coming back to PAGE 38(PAGE SWITCING).

I would get ILLEGAL_BP error.

i have enough stack space.

 

Can someone tell what would be the problem.

 

Thanks,

Embitel.

ラベル(1)
0 件の賞賛
返信
1 返信

319件の閲覧回数
kef
Specialist I

Does your asm routine use RTC instruction to return? Or indeed RTS?

0 件の賞賛
返信