User Tools

Site Tools


operating_systems:freedos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
operating_systems:freedos [2022/03/15 17:13]
nanodano
operating_systems:freedos [2022/03/21 21:01]
nanodano
Line 166: Line 166:
 Built-in commands: Built-in commands:
  
 +  * ''path'' - Display executable paths
   * ''echo'' - Print text to terminal   * ''echo'' - Print text to terminal
   * ''cls'' - Clear the screen   * ''cls'' - Clear the screen
   * ''which'' - Find where an executable is located. E.g. ''which fdisk''   * ''which'' - Find where an executable is located. E.g. ''which fdisk''
   * ''vol'' - Disk volume information. E.g. ''vol d:''   * ''vol'' - Disk volume information. E.g. ''vol d:''
-  * ''mkdir'', ''cd''/''chdir'', ''del'', +  * ''mkdir''/''rmdir'', ''cd''/''chdir'', ''del'' ''rename'' 
 +  * ''for'', ''rem'', ''goto'', ''break'' - For loops and comments (mostly for batch scripting) 
 +  * ''pause'' - "Press any key to continue..." that will wait before continuing 
 +  * ''ver'' - Print version of Command.com (FreeCom) 
 +  * ''copy''/''del''
  
 There are also built-in features like: There are also built-in features like:
Line 227: Line 232:
 ===== Get software ===== ===== Get software =====
  
 +  * [[https://www.freedos.org/links/]]
 +  * [[https://www.freedos.org/software/]]
   * [[https://www.dosbox.com]]   * [[https://www.dosbox.com]]
   * [[https://archive.org/details/softwarelibrary_msdos]]   * [[https://archive.org/details/softwarelibrary_msdos]]
-  * [[https://www.freedos.org/software/]] 
   * [[http://dosprograms.info.tt/]]   * [[http://dosprograms.info.tt/]]
  
Line 252: Line 258:
 - Dialog - Dialog
 - sqlite - sqlite
 +- FDTUI (better than FDSHELL which runs at 100% cpu) - ''dosshell'' - terminal-based Windows system with mouse support
 +- IMGEDIT ''imgview'' and ''imgedit'' like Paint
 +- pmge ''pgm'' - a menu system for running programs
  
 ==== Installing manually in FreeDOS ==== ==== Installing manually in FreeDOS ====
Line 300: Line 309:
 Text Browser: Links C:\Links\links.exe Text Browser: Links C:\Links\links.exe
 GUI Browser: Dillo C:\DILLO\DILLO.exe GUI Browser: Dillo C:\DILLO\DILLO.exe
 +GUI Browser: Arachnae
 ===== Programming ===== ===== Programming =====
  
Line 306: Line 315:
 === Languages === === Languages ===
  
-Lua: `C:\DEVEL\LUA\LUA.EXE` +  * Lua: ''C:\DEVEL\LUA\LUA.EXE'' 
-Assembly: `fasm``jwasm``nasm` +  Assembly: ''fasm''''jwasm''''nasm'' 
-BASIC:  `FBC(FreeBasic 32-bit compiler) +  BASIC:  ''FBC'' (FreeBasic 32-bit compiler) 
-C: `bcc(Bruce's C compiler), `gcc(djgpp C/C++ compiler), `owOpen Watcom C/C++ Compiler +  C: ''bcc'' (Bruce's C compiler), ''gcc'' (djgpp C/C++ compiler), ''ow'' Open Watcom C/C++ Compiler 
-Pascal: `FPC`+  Pascal: ''FPC''
  
-== NASM ==+== NASM hello world ==
  
-Similar to the Linux hello world program except `int 80hwon't work because that's a Linux interrupt. In DOS its `int 21`+Similar to the Linux hello world program except ''int 80h'' won't work because that's a Linux interrupt. In DOS its ''int 21'' 
 + 
 +== VGA programming == 
 + 
 +Screen 13! How to do it in assembly with interrupt, and how to do it in BASIC with SCREEN 13. Where is the VGA memory location. It's as easy as writing to the memory location.
  
 == Lua == == Lua ==
Line 321: Line 334:
  
 == BASIC == == BASIC ==
 +
 += BWBASIC =
 +
 +Bytewater must be run with a 32-bit protected mode DOS extender like ''dos32a''.
 +
 +<code>
 +dos32a bwbasic.exe
 +</code>
 +
 += FreeBASIC =
  
 https://www.youtube.com/watch?v=tIGokkohQho https://www.youtube.com/watch?v=tIGokkohQho
Line 336: Line 359:
 ``` ```
  
-== C ==+== C/C++ =
 + 
 + 
 + 
 += OpenWatcom = 
 + 
 +  * There is ''conio.h'' for terminal (like ncurses) 
 +  * and ''graph.h'' for doing graphics 
 + 
 +<code> 
 +REM Without this env var, linker fails 
 +set WATCOM=C:\devel\watcomc 
 + 
 +REM wcc, wpp, wlink - compilers & linker 
 +REM wcl - compile and link in one 
 +wcl hello.cpp /IC:\devel\watcomc\h 
 + 
 +REM TO allow the omission of /I flag set INCLUDE 
 +set INCLUDE=C:\devel\watcomc\h 
 + 
 +REM Now you can simply compile & link with: 
 +wcl hello.cpp 
 +</code> 
 + 
 += DJGPP =
  
 Make sure DJGPP is installed from the FreeDOS CD-ROM using `fdimples`. Make sure DJGPP is installed from the FreeDOS CD-ROM using `fdimples`.
operating_systems/freedos.txt · Last modified: 2022/03/21 23:53 by nanodano