[Very very small code] skip.asm - ZZT intro skip disassembly

Discuss how totally awesome Bang! is here.

Moderator: Terryn

Post Reply
User avatar
Smilymzx
I hope she made lotsa spaghetti!
Posts: 180
Joined: Sat May 20, 2006 2:58 am
Location: LocacoLocacoL :LoL!

[Very very small code] skip.asm - ZZT intro skip disassembly

Post by Smilymzx »

NOTE: This is in Public Domain, as long as Kev said so, It's free to do this and it's still under that licence!

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?
for the author KEV: If you want it removed, I'll try to remove it the best I can

ghettoflower
viovis
Posts: 48
Joined: Tue Oct 05, 2004 3:55 am
Location: jorja
Contact:

Re: [Very very small code] skip.asm - ZZT intro skip disasse

Post by ghettoflower »

phew... that was INTENSE.. I can see a degree of skepticism here among the locale but that's a clone in my heart I seek such fair. You've brought great light to our shiny windows that we so dearly cover with aluminum to give us great deeds no shall go unfortunate forth to the layers in our hearts. Dior hip Choi Ohio oho hi ghroipth4pu403j9hoigj jingo ion bio jingo grep o i g Giorgio j o i jamb bm oip JP hop Joplin[ Bjorn flavorful lifestyles become of us.. It's so kawaii!!!


:safe: !!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!
▒░Vivois▒▓█
-i like elk

User avatar
Smilymzx
I hope she made lotsa spaghetti!
Posts: 180
Joined: Sat May 20, 2006 2:58 am
Location: LocacoLocacoL :LoL!

Re: [Very very small code] skip.asm - ZZT intro skip disasse

Post by Smilymzx »

I also uploaded the ZZT TSR by Quantum P. which was missing since belsambar was moved, makes more use of ASM.

It does toggle the blink bit like how BLINKX does, along with combined usage of Megazeux .CHR and .PAL files, too.

Build Instructions:
nasm -f bin tsr2.asm -o tsr2.com

Install Example TSR in DOS
TSR2.COM i

Uninstall Example TSR in DOS
TSR2.COM u

The TSR is being in a state of moderation as of now, If it gets rejected, I will do another reupload with these instructions added.

Post Reply