It's possible to create MS-DOS applications on 32-bit versions of Windows. You need a compiler targeting MS-DOS, such as djgpp (MS-DOS port of gcc) or Turbo C++. It is not possible to run (and thus, develop) MS-DOS applications on 64-bit versions on Windows. MS-DOS is outdated and it's probably not...
assembly,nasm,interrupt,ms-dos
You should not let your radius get bigger than 99 because the dimensions of the screen are 320x200 and you are drawing from the center of the screen with no checks on the outcome of the address calculation in DI register. To get the desired loop make the following changes:...
"good old DOS" is old, but not very good. Your problem can be solved, basicly by building a temporary .bat file. It's described in detail here: https://support.microsoft.com/en-us/kb/66292 I have no DOS available, so I can't test, but this should work for you: mycommand.exe>c:\temp.txt find "Serv " c:\temp.txt>c:\temp2.txt REM init.txt should...
c++,ms-dos,interrupt-handling,irq
It's been a LONG time since I've done any MS-DOS code and I don't think I ever worked with this particular interrupt (I'm pretty sure you can just read the memory location to fetch the time too, and IRQ0 can be used to trigger you at an interval too, so...
Batch file language is part of MSDos. It has also been part of MSDos successors - OS/2, Windows 16 bit, Win 32 on 9x as a MSDos 7, and on Win NT 32 bit as MSdos 5.5 which is the current one. 64 bit doesn't have MSDos. In OS/2 IBM...
mov dx, offset '0' and mov dx, offset ' ' don't produce a string nor an offset to a string. TASM replaces '0' just with the ASCII code (30h), so the instruction will be mov dx, 30h and at DS:0030h is no '0'. I don't know const.inc. I guess there...
c++,assembly,inline-assembly,ms-dos,borland-c++
The type int can only hold a 16-bit signed integer and the number you tried to assign to filename is way outside its range. As int variables are two bytes long, they're not all that useful for storing file names. Instead you should store the name in an array of...
Your source code has a number of things that made me frown; I don't know how forgiving DOS Box is, but on a real IBM-PC compatible machine with MS-DOS installed, I would expect this program to hang. The interrupt handler doesn't toggle port 61h bit 7; this could be the...
The multiplication at CHANGE_STATE makes no sense since DX was not initialized beforehand! CHANGE_STATE: mov ax, 7 mul dx Hope this helps. Also because you're using string primitives lodsbyou could make sure to clear the direction flag cld....