Skip to content

Instantly share code, notes, and snippets.

@pmachapman
Created September 9, 2014 22:56
Show Gist options
  • Save pmachapman/b3762861210a82c790c5 to your computer and use it in GitHub Desktop.
Save pmachapman/b3762861210a82c790c5 to your computer and use it in GitHub Desktop.
Simple "Y or N" assembly routine for MS-DOS 5 or below. Compile with: debug < yorn.asm
N YORN.COM
A 100
MOV AH, 08
INT 21
CMP AL, 59
JZ 0116
CMP AL, 79
JZ 0116
CMP AL, 6E
JZ 0116
CMP AL, 4E
JZ 0116
JMP 0100
MOV AH, 4C
INT 21
RCX
1A
W
Q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment