This is a non-bloated version of the same SKIP.COM, this is because I removed unused and unneeded code, this is because of the recent attempt to fight bloatware!
Code: Select all
;SKIP.COM, now with less bloat
;Disassembled by SmilyMZX/Hamtaro126 for NASM
;Original (from Kevedit) by Bitman and Kev
;for the DOS versions of ZZT
;
;To make the .COM file:
;nasm -f bin skip.asm -o skip.com
;
;Licence: Public Domain, since Kev said so.
USE16 ;is a 16-bit x86 program
ORG 0x100 ;is a com file
; The Low reg of the Accumulator (or AL) returns 1 if a key is pressed...
; Also, CH returns the scan code, CL the returns character
MOV ah,5 ;??? (High of Accumulator, or AH reg = 5)
MOV cx,4Bh ;"K"
INT 16h ;Interrupt 16h - Keyboard Buffer
MOV ah,5 ;??? (High of Accumulator, or AH reg = 5)
MOV cx,43h ;"C"
INT 16h ;Interrupt 16h - Keyboard Buffer
MOV ah,5 ;??? (High of Accumulator, or AH reg = 5)
MOV cx,0Dh ;"\r" (carrage return, decimal 13)
INT 16h ;Interrupt 16h - Keyboard Buffer
MOV ax,4C00h ;And now exit this program, with AL being the exit code!
INT 21h ;Interrupt 21h
;Removed unused code, possible DOS assembler memory leak or overflow?