473,609 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need advice!!!

539 Contributor
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.getRunt ime().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"?i f 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 1075

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

Similar topics

11
2085
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 product. Since I had no other work at the time, I agreed to a low rate when I first started which was £100 a day. The project started small, so it was only going to be for a few months, and I badly needed the money. The project soon balooned into...
3
3162
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 formats the spreadsheet, prints it out, and manually picks out the products we need to ship. I want to import this into an Access table. Basically, the sheet with some data examples looks something like this: ...
1
1505
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 devices implements one basic interface I have N clients to work with all devices. Options of implementation 1) Remoting - Owful "overhead" (IMHO) 2) Just regilar custom TCP (sending well-known string commands to hub server
1
1554
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
3166
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 finished (at the begining I have about 2500 objects in the unit, after the first acces I have 2499, then 2435, then 1720 and so on). The problem is that sometimes after a whole sequence the number of objects in the unit remains unchanged. After...
3
2652
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 search my portal (mySQL, PDF, Ms Word & others) 2. search engine that could search to few web sites specified by user/programmer
7
2041
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
1675
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
1644
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 static part. We could use a localize/literal control and stick content in a resx-file - but it could be several paragraphs in pure HTML and the text is not 100% static. It might change a few times a year. Another way is to have two html pages and...
7
2132
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 the right menu, the article shows on the left column. The links have an url that look like this: http://www.myweb/library/?doc=194uf7s39
0
8145
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8095
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8236
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8410
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6068
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5526
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4037
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2541
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.