Simple math on the FreeDOS command line

preview_player
Показать описание
Someone asked about how to do simple math operations on the FreeDOS command line. Jerome Shidel wrote the V8 Power Tools for FreeDOS, and that includes the VMATH program to do simple math. Let's explore how to use VMATH and a few limitations.

*Edit: Sorry about the audio issues on this one. I am trying a new setup, and I didn't realize it caused some sound problems. I recorded another video just after this one, so next week's video will probably have the same audio issues; I'll change back to the old setup for the video after that.

Visit our website

Join us on Facebook

Follow us on Mastodon

Consider supporting me on Patreon

And don't forget to Like and Subscribe!

Standard comment rules apply.
Рекомендации по теме
Комментарии
Автор

This program is an interesting concept. Many young programmers would certainly be able to write a similar program. It would be an interesting exercise.

franciszek
Автор

Is it me or is your audio repeatedly cutting out?

osok
Автор

This doesn't make much sense. Ok I understand that FreeDOS is a 16-bit OS. I understand that SIGNED 16-bit would go only up to 32767. But if he's gonna only work with unsigned numbers, why did he limit the program to 32767? It should go to 65536. Even then it seems limited. To be fair I don't know much about DOS command line tools and the limitations of building them but there should be some sort of way to chain two 16-bit variables together to get a 32-bit result.

sharoyveduchi
Автор

Can we use enviroment variables that contain the ASCII of a value like shown below?
set A$=9
set B$=5
vmath A$ + B$
14

maxmuster
Автор

Hey👋 is there a why to write a graphical program that display color's and images, without using graph.h

DV-yexb
Автор

Why don't you just suggest the use of GNU bc? It's available on the FreeDOS images and it is much better than vmath.

OpenGLever
Автор

I think it's a nice short video, but for those who don't know binary it may be confusing.
and here I suggest making a video on Binary system with some practical use cases on bit shifting 😁
Thanks Jim (1 << 7) - 28 💯

ahmad-murery
visit shbcf.ru