Skip to content

Instantly share code, notes, and snippets.

@pmachapman
Created April 2, 2017 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmachapman/09d14ae6c49e24e7b0c7f25bccb0e1cf to your computer and use it in GitHub Desktop.
Save pmachapman/09d14ae6c49e24e7b0c7f25bccb0e1cf to your computer and use it in GitHub Desktop.
Simple APM shutdown assembly routine. Compile with: debug < shutdown.asm
N SHUTDOWN.COM
A 100
MOV AX, 1000
MOV SS, AX
MOV SP, F000
MOV AX, 5307
MOV BX, 0001
MOV CX, 0003
INT 15
R CX
19
W
Q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment