|
-
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
-
Jul 2nd, 2006, 12:50 PM
#2
Addicted Member
Re: Connect assembly lang to VB
eh? what are you talking about 
are you trying to write assembly language into visual basic.?
Whats an IC chip :S I'm not sure
Thats not x86 language.
Cheers.
-
Jul 3rd, 2006, 02:39 PM
#3
Re: Connect assembly lang to VB
About the best you can do is:
a) Write a dll in assembler. Use it in VB.
b) Define a large string variable in VB. Use that space to store the machine language routine. Use your method of choice to call the address of the ML routine.
Or you could just reanalyze your situation and use VB to read from and write to the device. What's the physical connection? Serial? Parallel?
(VB is NOT the proper language to use to solve this type of problem, unless the communications between the device and the PC is something VB can handle.)
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Jul 7th, 2006, 12:20 AM
#4
Thread Starter
Lively Member
Re: Connect assembly lang to VB
Thanks for your solution.
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
|