Results 1 to 2 of 2

Thread: PIC16C73

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Sep:2005
    Location: sv
    Posts: 4

    PIC16C73

    , .
    ,:
    1. , :
    R=A.7+2.B-49
    , A B
    2. 2 32 .

    :

    ---------------------------------------------------
    #include "P16C73.inc"
    REGA equ 0x20
    RLA equ 0x21
    RHA equ 0x22
    REGB equ 0x23
    RLB equ 0x24
    RHB equ 0x25
    RRR equ 0x26
    MAS equ 0x30
    org 0x0000
    goto start
    org 0x0010
    FOR
    movf REGA,0
    movwf RLA
    bcf STATUS,C
    rlf RLA,1
    rlf RHA
    rlf RLA,1
    rlf RHA
    movf RLA,0
    addwf REGA,0
    btfsc STATUS,C
    incf RHA,1
    addwf REGA,0
    btfsc STATUS,C
    incf RHA,1
    addwf REGA,0
    btfsc STATUS,C
    incf RHA,1
    movwf RLA
    movf REGB,0
    movwf RLB
    bcf STATUS,C
    rlf RLB,1
    rlf RHB
    btfsc STATUS,C
    incf RHB,1
    movf RLA,0
    addwf RLB,0
    btfsc STATUS,C
    incf RHB,1
    movwf RLB
    movf RHA,0
    addwf RHB,0
    movwf RHB
    retlw 0
    start

    next
    movlw MAS
    movwf REGA

    call FOR
    goto next
    NOP
    END
    ----------------------------------------
    49
    ( , )

    . 4 REGA 4, 30?
    ( , )

  2. #2
    kernel panic,me- no panic the_real_maniac's Avatar
    Join Date: May:2003
    Location: Europe, BG
    Posts: 1,141
    Running Linux from 2001

Posting Permissions

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

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |