68HC12 stepper bug

From: Leon Wagner <leon_at_forth.com>
Date: Wed, 22 Jan 2003 09:33:00 -0800

How to reply: Use your email client's "Reply All" function to reply to the
entire list (preferred). Use "Reply" for a private reply to the sender.
--------------------------------------------------------------------------

In systems with a co-resident monitor program (Dbug-12, MON12, etc), the
single-stepper data stack pointer is being corrupted by the monitor's
exception handler. It is necessary to retrieve the data stack pointer from
the SWI exception frame before accessing the stack. The SWI exception
handler <+DEBUG> should look like this:

LABEL <+DEBUG>
   5 ,SP LDY \ Get data stack pointer from exception
frame
   2 ,-Y STS \ Return stack address
   7 ,SP 2 ,-Y MOVW \ Address of next word to execute
   STEPPING # 2 ,-Y MOVW \ Single-step indicator
   CLI ' BREAKPOINT JSR \ Return control to host
   END-CODE \ Continue in <-DEBUG>

This will be corrected in the next maintenance release.

----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
----------------------------------------------------------------------
THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.
Received on Wed Jan 22 2003 - 09:32:13 PST


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 08-Feb-2012. Archive updated nightly.