piclist 2002\05\28\091717a >
Thread: IREAD instruction
www.piclist.com/techref/ubicom/devices.htm?key=sx
picon face BY : parkiss@earthlink.net



Ruben-

Your IDE is probably just fine.  Take a closer look at the cross-page
calling techniques.  Try the following change for starters:

...
loop
        mov             w,ROM_H
        mov             m,w
        mov             w,ROM_L
        call            @_iread_     ; was _iread_
        test            w
...

A simple call to _iread_ does not push any page info, so the retp is
going to give unsatisfactory results.

Also note the m register gets clobbered is setting up the IREAD, so
you may not be accessing the port registers in the manner you intend
subsequently.  Be sure to reset m (MODE instruction or whatever)
as needed after an iread.


Regards,

Steve

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


<E17Cgnv-0007kL-00@snipe.prod.itd.earthlink.net> 7BIT

In reply to: <3CF3584B.32740.1BCA4E@localhost>
See also: www.piclist.com/techref/ubicom/devices.htm?key=sx
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) IREAD instruction

month overview.

new search...