dos

Using inp() on 16Bit Dos 5with Turbo C++ 3.0

天涯浪子 提交于 2019-12-25 02:13:10
问题 First off I'd like to say that I know this is a really outdated question. That,s probably why I can't find any information through google. (or I'm just worse at searching than I'd like to admit! haha.) All the results pretty much tell me that inp() & outp() are useless on modern systems because the kernel handles all input and output rather than the program. I'm running 16 Bit Dos from a 486 machine and I've been able to use outp() with my parallel port perfectly. I like 16 Bit Dos, and I'm

alternative to the fscanf()/vscanf() functions family for using an alternative validation key or how to create a custom language layout?

北城以北 提交于 2019-12-25 01:48:18
问题 I am rather knew in C. And the only way I know for setting a variable from stdin is by using the fscanf() / vscanf() functions family. DOS operating systems are seeing a resurgence in the embedded market. The device which I am using is programmatically compatible with DOS and use a NEC V30Mx which feature the 80286 instruction set. The problem is the built-in keyboard doesn’t feature the enter key and instead use the EXE key which enter the 0x1C00 key code (Alt enter) . So when I write a

Different behaviour of DOS Environment setting, in if statement, in DOS prompt as compared to Windows Shortcut

时光毁灭记忆、已成空白 提交于 2019-12-25 01:38:55
问题 This seems so simple, but has turned out to be such a pain. On Windows 7, I can paste the below into a command prompt and have it set ProgramFiles(x32) to either %programfiles% or %programfiles(x86)% then echo what it was set to: %comspec% /c if exist "%programfiles%" (set "ProgramFiles(x32)=%programfiles%") else (set "%ProgramFiles(x32)=%programfiles(x86)%") && set Program && echo %programfiles(x32)% && pause However when putting this same command into a shortcut, I get this: What is going

Why can't i get different mouse clicks coordinates twice? assembly

℡╲_俬逩灬. 提交于 2019-12-25 01:24:38
问题 I have a small procedure that is supposed to check if there was a click and get the click's coordinates. In the first time, it works but when I call it at the second time it doesn't even let me click again... why? what is wrong? I tried everything, put the mouse setting outside the procedure-didn't do any differences. Also, I tried to create some kind of small thing where you click once, put the cx in si and call sam click check again and comparing si and the new cx and it is different (si is

java基础知识01

这一生的挚爱 提交于 2019-12-24 22:02:12
常用DOS命令 Java语言的初学者,学习一些DOS命令,会非常有帮助。DOS是一个早期的操作系统,现在已经被 Windows系统取 代,对于我们开发人员,目前需要在DOS中完成一些事情,因此就需要掌握一些必要 的命令。 进入DOS操作窗口 按下windows+R键盘,打开运行窗口,输入cmd回车,进入到DOS操作窗口。 打开DOS命令行后,看到一个路径c:/user就表示我们现在操作的磁盘是c盘。 常用命令 格式:Dos指令(常用)——说明——备注 D: 去往D盘 cd. . 返回上一级目录 cd 文件名 目录切换到该文件名(子目录)下 * cd * 直接回根目录 dir 当前根目录下的文件目录 dir /s 所有目录 dir/p 目录多的时候,p用来分屏,显示完一屏后停下来 dir/w 所有文件一屏内显示,只显示文件和子目录 * dir .bat 显示所有扩展名是bat的文件,*代表任意字符。 为通配符,可代表多个字符,在分隔符前起作用 dir a 显示所有文件名是a的文件,*代表任意字符 dir a? 显示所有文件名是以a开头,并只有2个字母,?代表任意字符。?为通配符,只能代表1个字符,在分隔符前起作用 dir /ta 显示目录的文件上次访问时间 access dir /tc 显示目录的文件创建时间 creat md 文件名 创建目录-make directory rd

chat on assembly using serial port

五迷三道 提交于 2019-12-24 20:28:27
问题 I'm working on a chat using assembly and i got this huge doubt, I'm currently using int 21, AH= 0Ah to get a string from the keyboard wich I will later send, char by char, through the serial port, but then i was wondering how, will I receive a msg from the other computer running the same program if this one is in a interruption waiting for me to input a string. How can i get around the fact that when inputing a string, the whole program is interrupted and anything being sent on the mean time

How to automatically close App_A when I close App_B using batchfile

帅比萌擦擦* 提交于 2019-12-24 19:16:13
问题 Hi everyone I'm a newbie in batchfiling but loved tinkering and coding every other time. Can I make a batch file that closes two program simultaneously? Example, I created a batchfile that opens two program, App_A (gamepad imulator) is minimized App_B (offline RPG Game) normal window. What I want is when I close App_B App_A would automatically close too so that I don't have to restore the window and manually close the imulator. this is the code I just did which I also found in this site and

常用DOS命令

廉价感情. 提交于 2019-12-24 18:23:30
DOS命令有很多,这里介绍学习java中要用到的常用DOS命令 常用的 DOS 命令 * a: 打开 Dos 控制台 * win+r--cmd-- 回车 * b: 常用 dos 命令 * cd.. : 退回到上一级目录 * cd\ : 退回到根目录 * cd tools: 进入 tools 文件夹 * d: : 回车 盘符切换 * cd d:\234 : 进入 d 盘的 234 文件夹 , 再切换盘符 (d:) 才能进入 d:\234 * dir : 列出当前目录下的文件以及文件夹 * cls : 清除屏幕 * ipconfig: 查看本机的相关网络配置 * c: dos 控制台运行记事本程序 * D:\>C:\windows\notepad.exe * 还可以省略“ .exe ”后缀,例如: D:\>C:\windows\notepad 来源: CSDN 作者: little-stars 链接: https://blog.csdn.net/weixin_41874888/article/details/103686441

Batch file add/remove hosts file entries syntax error

这一生的挚爱 提交于 2019-12-24 15:41:07
问题 The following script is supposed to manage adding and removing entries into the hosts file. Entries with .dev are supposed to point to localhost and all others should prompt for an IP address. If the entry already exists it should ask you if you want to remove it. I am getting a vague The syntax of the command is incorrect error but I'm not sure which line it's referring to. If I turn @echo on it then spits out if ( on the next line and then dies. The only way I can catch the error is to do a

Resolve usb drive letter in batch file on any host computer

感情迁移 提交于 2019-12-24 15:26:37
问题 I looked at the possible solutions for my question, but am afraid my knowledge level doesn't permit me to ask the question correctly. My USB drive is named CRUISER, and I have a couple apps that I wish to run, via a batch file on the host computer. Since I have no idea what the drive letter will be how can I resolve the drive by name in a batch file? Here is what I have in my current host side batch file. (as you can see by the REM and pause statements, I've been testing....) REM Start