473,385 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Proper invoking .COM file

539 512MB
A86 code (Assembly)

jmp main

main:
mov ah,0h ;Service 0, Captures the input and stores it to register al...
int 16h ; Interrupt 16 BIOS...

mov ah,2h ;Service 2
mov dl,al ;Copy register al to register dl
int 21h ;interrupt 21, prints the character
jmp exit ;goto exit
;end main

exit:
mov ah,0h ;equivalent getch in C
int 16H ;
int 20H ;equivalent System.exit(0) in java


the code above is a A86 code that waits for an input from the user
and prints what the user entered...

the .COM file is the generated file after compiling the code, like executable file in windows....A DOS program....

I've tried to invoke the .COM file using

Asumming the .COM filename is INPUT.COM
Runtime.getRuntime().exec("cmd /C start INPUT.COM");

It invokes the .COM file, but the expected flow doesn't prints what the user entered... Until terminated...

When i just double clicked the .COM file, im satisfied with the flow....

What is the proper invoking of this .COM file?

Any reply will be appreciated...

Sukatoa...
Feb 21 '08 #1
1 1730
sukatoa
539 512MB
If you were to implement this,

How would you invoke the .COM file from java?

Any reply would be appreciated

Help needing,
Sukatoa
Feb 25 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Anand K Rayudu | last post by:
Hi I have extended/embedded python into my application, it is working great, The documentation is too good, I could replace existing scripting tool to python in no time. I have one problem...
0
by: Prasad | last post by:
We are invoking a SQL DTS component (lets call it Comp1) built by us in another component (Comp2).Comp1 was built by creating the DTS package using the SQL DTS wizard and then saving it as a VB...
2
by: JeffFinnan | last post by:
I am trying to develop some script to open files for use in a particular plugin called Chime which is used for molecular visualization. I am just experimenting right now. The whole script works...
3
by: bbxrider | last post by:
running win2k adv server/ iis5.0 trying to setup on my web page where browsers can download a file, an .xls so been trying to figure out with a download 'link' what invokes the standard ms file...
6
by: Patrick | last post by:
Following earlier discussions about invoking a .NET class library via ..NET-COM Interop (using regasm /tlb) at...
0
by: domnics | last post by:
Hi, I am having a problem invoking a JAR file. I had created a Java package using Eclipse and I can run it under Eclipse. I want to create a JAR file that can be invoked by a double click.. My...
2
by: Tim Reed | last post by:
Hello ... my Dad is dabbling in VB & has a question about invoking a PDF (to display a help file or manual). Myself, I don't know VB - but I *do* know how to post to a NG <g>. If anyone has a...
2
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
6
by: John O'Flaherty | last post by:
Hello. I have an ms acess database that I use to track my mp3 files. I have included code that lets me select and play files by invoking an mp3 player (Winamp). This is done by using visual basic...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.