I have a slight problem involving a DOS-bootable USB flash drive & a menu system that I've created.
I've created two programs & a batch file menu system for hardware testing. The purpose is to run a range of in-house computer hardware test utilities from a USB flash drive, in a rapid manner that's suitable for a quality control environment.
I've managed to get everything up & running as desired except for shutting down & rebooting the computers.
I've already created a shutdown utility (using assembly language, assembled on an IBM R51 laptop running 16-bit, real-mode DOS without any memory managers,) that's supposed to power-off any computer using BIOS interrupt 15. However, the program will only turn off my IBM R51; it won't operate on other machines (instead, it will abort the operation).
So, I've decided to use either DJGPP or Open Watcom to compile a shutdown utility in C language. This said, I'm unsure as to how to call the interrupt.
Any assistance in doing so for either compiler is greatly appreciate. Otherwise, any assistance with my faulty assembly language code is appreciated.
Technology: something that's hated & cursed at by all engineers, technologists & technicians!
( Lousy modern technology!