Hi!
Ich hab da ein Dos Programm mit Assembler Source das einen neustart oder (bei ATX) einen Shutduwn machen kann.
Dieser code sollte den Computer abschalten:
Code:
mov ax,5301 ;Function 5301h: APM þ Connect real-mode interface
xor bx,bx ;Device ID: 0000h (=system BIOS)
int 15 ;Call interrupt: 15h
mov ax,530e ;Function 530Eh: APM þ Driver version
mov cx,0102 ;Driver version: APM v1.2
int 15 ;Call interrupt: 15h
mov ax,5307 ;Function 5307h: APM þ Set system power state
mov bl,01 ;Device ID: 0001h (=All devices)
mov cx,0003 ;Power State: 0003h (=Off)
int 15 ;Call interrupt: 15h
;if the program is still running here, there was an error...
Ich hab dir das zip mit Programm und Source angehängt.
Achja, das Prog. ist nicht von mir!!
Ich hoffe das wars was du gesucht hast.
lg