473,409 Members | 1,943 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,409 software developers and data experts.

Need advice!!!

539 512MB
I currently developing a simple notepad that could compile A86 codes using java.... Im using Windows XP SP2....

When @ compile, i am satisfied with the result...

When i try to invoke the .COM file from java, the problem occured...

my a86 simple program that waits and accept a character input from the keyboard and print it directly then next keypress terminates...

////////////////////////////////////////////ASM CODE//////////////////////////////////////////////////
jmp main

main:
mov ah, 0h ;responsible for capturing keyboard inputs
int 16h

mov ah,02h ;responsible for displaying the character inputted..
mov dl, al
jmp exit:

exit:
mov ah,0h ;equivalent getch in C...
int 16h
int 20h
////////////////////////////////////////////END CODE//////////////////////////////////////////////////

after compile, the .COM file generated,

When i just invoke the .COM file by just using mouse (double clicking on it)...
It runs actually
waits any keyboard input, after input, it directly prints the character...
then terminated after any following keyboard press...

here's my problem,

but when i try to invoke it using Java...
Runtime.getRuntime().exec("cmd /C start TEMPNAME.COM");
assuming TEMPNAME is the filename...

It executes actually, but it stays in freeze state until the 2nd input then terminated...

i mean, at the real flow, it waits for a character, when i press 'a', then prints the 'a' character then pressing any key to exit...

but in invoking through java, it waits, when i press 'a', it doesn't print, next input then terminates...

actually i invoke the CMD, and the CMD would do the process...to invoke the .COM file...

does the way i invoke the CMD is wrong?
Can you advice me with the "cmd /C start TEMPNAME.COM"?if it is wrong?
or get doubt? or suspected?
is "/C start TEMPNAME.COM" is a proper invoking pattern in MSDOS?
Thus any other way/alternative for this?

I suspect this code "cmd /C start TEMPNAME.COM"......

because, i have a subject now ASSEMBLY, i feel tired like using DOS to do the task, like compiling and invoking on it (edit temp.asm, a86 temp.asm, temp.com) like that in DOS...

in JAVA forum, nobody could try to answer this similar thread there...
Im hoping that in this forum, i might get the right way to the solution...

I really like to distribute this notepad if it works 100%...
Please help me...

A solid WINDOWS user,
Sukatoa... Thanks in advance....
Feb 24 '08 #1
0 1063

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

Similar topics

11
by: Mark | last post by:
Hi, For the last 2 years I've been developing vehicle tracking/telemetric software for a company as a self employed individual. The project is quiet big, and is going to be there flagship...
3
by: ChadDiesel | last post by:
Hello everyone. I need some advice on table structure for a new project I've been given. One of our customers sends us an Excel spreadsheet each week containing their order. Currently, someone...
1
by: Tamir Khason | last post by:
Hi, all This time I need advice - no help ;) I have following architecture: 30 server with 100 devices connected each one Each "device" implement some (between 1 and 10) different interfaces All...
1
by: Chris Lane | last post by:
Need Advice on prebuilt Exception Assemblies Please take a look at my post on the Titled: Need Advice on prebuilt Exception Assemblies posted on 04/21/04 Thank
3
by: Sigmathaar | last post by:
Hi, I'm need some advice about lists and vectors. I'm doing a program who needs to have sequential access of a non ordered unit of objects whose size decreases almost each time the sequence is...
3
by: hazly | last post by:
I'm very new in the web technology and need advice on search engine. I want to develop a portal using PHP and MySQL on Linux. Need to know on the following features : 1. search engine that could...
7
by: John Paul | last post by:
I'm thinking of building an e-commerce site in php. Anyone got any advice in building one? What is the best way to implement a payment system? Are any legal issues involved? Thanks,
5
by: Eric Layman | last post by:
Hi, Many years ago when I first learnt abt web dev in school, I was taught this methodology: <html> blah blabh
2
by: Hans Artm | last post by:
Hi, We are developing a site that needs to be localized (english + spanish). The site has a lot of "static" pages with a lot of text, and some dynamic pages. We are unsure how to develop the...
7
by: SM | last post by:
Hello, I have a index.php template (2 columns). The right columns contains a bunch of links (interviews, poems, etc...) The left columns contains the actual article. So if I click on a link on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.