Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey guys,

i am making another program and i want it to run asm programs. i don't know how to run the asm files. i know how to read/write the asm files, but i don't know how to actually run the files in a console application. can you please help me? i will give you an example code in asm to run:

or 100h
use16

mov ah, 09
mov dx, message
int 21h

mov ah, 01
int 21h
mov ah, 4ch
int 21h

message db 'Hello World', 0ah, '$'
Posted

1 solution

You need to get yourself a copy of an Assembler that will convert this into object code and link it into an executable program. You can do it with Microsoft's C++ compiler but I'm not sure about VB. Try Visual C++ Express[^] or Google for "assembler".
 
Share this answer
 
Comments
Member 8378691 27-Apr-12 5:01am    
i don't know visual c++. and if you are asking my if i have an asm compiler, i have flat assembler. i just want a code that could run assembly in visual basic. or if necessary, how to run bin files. and if so, how do i make bin files. is it assembly code?
Richard MacCutchan 27-Apr-12 5:31am    
Like I said, I don't know how you could do this in VB or even VB.NET; I would suggest a Google search. If you already have an assembler then I presume you also have some documentation which should explain how to create an executable from assembler source.
Member 8378691 27-Apr-12 19:27pm    
the reason i am asking this is because i am making a virtual machine, something similar to virtual box. it opens up the asm file and runs the code it gives you. or, i would like to make an operating system in c#, and since c# and visual basic are so similar, i would ask in visual basic and be able to understand it better, then translate it into c# when i know how to do it.
Richard MacCutchan 28-Apr-12 5:05am    
Take a look at some of these articles for guidance.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900