Hi,

On Thu, Jul 21, 2011 at 7:59 PM, Rugxulo <rugx...@gmail.com> wrote:
> On Thu, Jul 21, 2011 at 2:49 PM, Rugxulo <rugx...@gmail.com> wrote:
>>
>> A better way could definitely be done in a variety of languages
>> (BWBASIC? DEBUG?).

Just for completeness, I did whip up a quick 8086 asm snippet for
DEBUG. (I actually tried doing a 7-bit ASCII executable version, but
it proved too tricky for the moment, so I've shelved that "weird" idea
for now, heh. I could've just used UBE or COMT or whatever tools
already exist, or even searched FASM's forum for inspiration, but I
guess it's not too important unless somebody didn't already have
DEBUG.)

P.S. Timo's BAT FAQ wasn't as exhaustive as I thought. The only
interesting trick was doing something like "echo. exit | command /c
prompt set blah=$t", which still would've needed some fiddling with an
external tool (esp. one not typically included in DOSes), so I didn't
bother too hard thinking about that. But even he often uses sed or awk
(or QBASIC) for some tricks. So I still don't think it's a horrible
idea to include one (or both!) of those for FD 2.0 (or whatever).


@echo off
if not exist %0 %0.bat
debug < %0
goto end
n rand4.com
rcx 20
a 100
mov ah,2C
int 21
xor ax,ax
mov al,dl
and al,3
inc ax
cmp al,0A
sbb al,69
das
xchg ax,dx
mov ah,2
int 21
ret

w
Q
:end

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to