piclist 1998\10\01\194036a >
Thread: Porting code.
www.piclist.com/techref/ios.htm?key=port
flavicon
face BY : netquake@spam@@.....innocent.com



Hi!
I have to port source code from a Motorola MCU (68HC705K1)(16 pin, 8
i/o)(running with a 4Mhz XTAL)to a PIC16F84 and I'm really lost (I'm not
familiar with Mot. MCU's). Any thoughts, advice, help or point in the right
direction is welcome.

Thank you very much!

P.D.: Source code is fairly short:

0300   BSET 1,000A
0302   LDA  #1
0304   STA  0004
       LDA #0FF
       STA  00E0
       CLRX
       BSET 0,0000
       CLI
       WAIT
 030F  LDA  0000
       BIT #2
       BEQ  0323
       BIT #4
       BEQ  0328
       CPX #60
       BCS 0321
       STX 00E0
       BSET 0,0000
 0321  RSP
       WAIT
 0323  CLRX
       BSET 0,0000
       RSP
       WAIT
 0328  INCX
       CPX 00E0
       BCS 0331
 032D  BSET 0,0000
 032F RSP
 0330  WAIT
 0331  LDA  0200,X
       STA  0000
       RSP
       WAIT
 0338  RTI

--------------------------------------------
"I must not fear. Fear is the mind-killer.
Fear is the little death that brings total
obliteration. I will face my fear... I will
permit it to pass over me and through me."

Kwisatz Haderach - Dune

       netQ
<KILLspamnetquakeTakeThisOuTspamEraseMEinnocent.com>

<7718969BDDC.AAB2AEC@un1.satlink.com> 7bit

See also: www.piclist.com/techref/ios.htm?key=port
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) Porting code.

month overview.

new search...