Re: TPU byte-word?

Eric McRae <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
Hi Attila,

qty154 wrote:

>I have a (to me interesting) question. What is the output of this TPU3 
>code (depending the value of dec):
>
>au      nil := dec + #$F5, ccl.
>
>Is it considered to be a byte or a word instruction?
>I guess it is a byte instruction, but the TPUMASMREF is not clear 
>about it.
>(Eric, can you please test it in your ashware simulator, what are the 
>flags after it if dec=10 or if dec=11? Or if someone could single-step 
>it with a L'bach emulator in a real TPU, that would be great!)
>  
>
It's a BYTE operation:

            au dec := #10.
            au nil := dec + #$F5, ccl.   #results in N set, all others clear
            au dec := #11.
            au nil := dec + #$F5, ccl.   #results in C & Z set, V & N clear

-- 
Eric McRae, Electro-Logic Machines, Inc.
511 Root St., Port Townsend WA, 98368
Phone/Fax: 360.379.0969, http://www.elmi.com



-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MPC500/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.