Re: Exception Trouble

From: Noel Henson <noel_at_noels-lab.com>
Date: Thu, 9 Sep 2004 08:21:07 -0700

I did look at how they were coded. I think that even saving D0, D1, A0 and
U are overkill. I'm concerned with the way I'm calling powerdown with:

' powerdown
ab jsr

I'm pretty sure I'm not doing anything wrong here.

Noel

On Thursday 09 September 2004 07:51 am, swiftx_at_teegra.net wrote:
> Noel,
> Why not code the entire exception is assembly? That way you'll know
> explicitly what registers you need to save and restore. Did you look at
> /portf and powerdown and make sure they were only used DO, D1, A0, and U?
>
> Dwight
>
> On Thu, 9 Sep 2004, Noel Henson wrote:
> > Hi,
> >
> > I'm using the Professional version of SwiftX68K.
> >
> > I know the following is not optimal, but is there anything actually wrong
> > with it? I'm getting strange behavior with the exceptions and am having
> > trouble tracking it down.
> >
> > Thanks,
> >
> > Noel
> >
> > : /portf ( - )
> >
> > $01 pfpar w!
> > $60 ddrf w!
> > $00 portf w!
> > ;
> >
> > : powerdown ( - )
> >
> > /portf
> > true to do-powerdown?
> > ;
> >
> > ' powerdown
> > label <powerdown>
> > RL R -) MMOV D0 D1 // A0 // U /// \ not optimized
> > AB JSR \ call powerdown
> > R )+ RL MMOV D0 D1 // A0 // U /// \ not optimized
> > RTE
> > end-code
> >
> > <powerdown> $1F EXCEPTION
> >
> > --
> >
> > ------------------------------------------------------------------
> > Noel Henson
> > www.noels-lab.com Chips, firmware and embedded systems
> > www.vimoutliner.org Work fast. Think well.
> >
> > ----------------------------------------------------------------------
>
> ----------------------------------------------------------------------
> swiftx_at_forth.com The SwiftX programming discussion email list
> To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
> For list command help, send subject "help" to swiftx-request_at_forth.com
> Message archives are located at http://www.forth.com/archive/swiftx
> ----------------------------------------------------------------------
> This list is a forum for SwiftX users. For product support and bug
> reports, please send email to support_at_forth.com
> ----------------------------------------------------------------------

--
------------------------------------------------------------------
  Noel Henson
  www.noels-lab.com	Chips, firmware and embedded systems
  www.vimoutliner.org	Work fast. Think well.
----------------------------------------------------------------------
swiftx_at_forth.com          The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users.  For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Thu Sep 09 2004 - 08:19:29 PDT

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

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