|
-
Jun 29th, 2006, 10:06 PM
#1
Thread Starter
Lively Member
[RESOLVED] Connect assembly lang to VB
Hi ,
I'm doing a project that involves a connection between assembly to VB.There is a switch that is connected to a IC chip.Anyone know where is the link between the assembly lang to the VB code?Thanks alot.
LoopForData
pagesel GetEP1
banksel outbuffer
bankisel outbuffer
movlw outbuffer
movwf FSR
movlw 0x8
call GetEP1 ; try and read data sent from the PC
pagesel ProcessOUTBuffer
btfsc STATUS,C ; If we got a packet
call ProcessOUTBuffer ; process it
banksel flagreg ; test if we have PICNET data
btfsc flagreg,1 ; to send to PC?
goto picnetdata
btfsc flagreg,2 ; test for local reply to send
goto localreply
goto LoopForData ; no
picnetdata
bcf flagreg,1 ;reset picnet reply flag
pagesel ProcessINBuffer
call ProcessINBuffer ; make a new packet
goto Pkt2PC ;send data back to PC
localreply
bcf flagreg,2 ;reset local reply flag
Pkt2PC
pagesel PutEP1
bankisel outbuffer
banksel outbuffer
movlw outbuffer
movwf FSR
movlw 0x8 ; 8 bytes
call PutEP1 ; send data to PC
pagesel LoopForData
goto LoopForData ; repeat
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|