Ian, I'm sure it's been doing this for the last 34 years or so ;)

Encouraged me to rough up a 68K controller for old school kicks though ..Cheers


John A

--- On Wed, 23/5/12, Ian Pine <[email protected]> wrote:

From: Ian Pine <[email protected]>
Subject: [Ql-Users] Debugging nightmare
To: "[email protected]" <[email protected]>
Date: Wednesday, 23 May, 2012, 12:52

Damn damn damn ...

I've just spent nearly a day and a half trying to debug a simple bit of 
assembler code because I forgot that on m68k CPUs the MOVE instructions alter 
the flags and I was convinced all sorts of other problems might've been the 
cause, but in the end all I had to do was swap two instructions:

     move.l  d5,d0
     and.l   d6,d0    <-
     moveq   #'0',d1  <-
     beq.s   sk1
     moveq   #'1',d1
sk1  ...

should've been:

     move.l  d5,d0
     moveq   #'0',d1  <-
     and.l   d6,d0    <-
     beq.s   sk1
     moveq   #'1',d1
sk1  ...

That'll teach me not to try to develop the same program on two different 
platforms at the same time!

Damn damn fume blast ...

Never mind though, might be a little something for QL Today when I've tidied it 
all up.

Ian.
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to