Problem with << ?


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    @Bruce,

    look at the SHIFTL?WCW in 2.47, it is right ?
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Nope. SHIFTL?WCW is not right. SHIFTR?WCW is fine.

    Make this change;
    Code:
    SHIFTL?WCW macro Win, Cin, Wout
        if (Cin == 1)
            bcf     STATUS, C
          if (Wout == Win)
            CHK?RP  Wout
            rlf     Wout, F
            rlf     Wout + 1, F
          else
            CHK?RP  Win
            rlf     Win, W
            MOVE?AB Wout
            CHK?RP  Wout     ' <- change this to CHK?RP Win and save it
            rlf     Win + 1, W
            MOVE?AB Wout + 1
          endif
        else
            MOVE?WW Win, R0
            MOVE?CA Cin
            L?CALL  SHIFTL
            MOVE?AWW R0, Wout
        endif
        endm
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Problem to compile my program
    By wagner in forum Off Topic
    Replies: 5
    Last Post: - 7th July 2008, 20:17
  2. Problem with ASM IRQ using FSR0 on PIC18F252
    By mytekcontrols in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 11th March 2008, 20:48
  3. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59
  5. PORTA.PinNo = 1 ' problem
    By frank small in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th May 2004, 14:30

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts