-=> Quoting Ed Beroset to All <=-
Hey there!
EB> Here it is a bit smaller:
Thanks for having a fiddle with it =)
EB> ; changed to TASM/MASM syntax, created some subroutines, and
EB> generally ; tightened things to shave it to 222 bytes.
Ok, I compiled it again, with TASM v3.1 and TLINK v7.00 and it was 226 bytes
:(
Hmm.. Did you use some command line parameters I should know about?
And just a few questions!
EB> stksize = 200h
EB> start proc
EB> ; move stack pointer
EB> stkend = (stkptr - start) + stksize + 100h
EB> mov sp, stkend
EB> ; resize block so we can allocate some memory
EB> mov bx, (stkend + 100h) / 10h
EB> mov ah, 4ah
EB> int 21h
Ok, firstly, you've got stkend + 100h, but you also added 100h to stkend
previously. Should that be there? Also, I don't quite follow what you've
done. I understand that one has to resize the amount of memory allocated to
your program to the size of all your code. But do you have to actually
allocate
the size of your code minus the size of your stack? And how come you changed
sp?
EB> mov si,di
EB> sub si,320
EB> mov bl, [di]
EB> mov ax, bx
EB> mov bl, [si] ; di-320
How come you did it this way? I checked in Turbo Debugger, and mov bl,
[di-320]
was smaller than what you've done here.
Ok, I think that's about it for now :)
Oh, one last thing, do you get FidoNet mail through email or something?
Sam
... Modemus Operandi: Torture the data till it confesses.
--- FMail/386 1.20+
---------------
* Origin: Comms Barrier BBS +61.3.9585.1112, +61.3.9583.6119 (3:632/533)
|