On 28 Nov 2011 at 11:04, Fred Cisin wrote:
Surely you can reduce it to much less than 12 lines in
"high level"
languages!
High level? For me, it's usually faster to use DEBUG on the file and
write a little code than to go looking for a program.
MOV SI,100
MOV DI,SI
SHR CX,1
MOV DX,CX
LODSW
(insert MOV AL, AH if getting odd byte)
STOSB
LOOP back to the LODSW
MOV CX,DX
INT 3
Use the DEBUG commands to change tthe name of the output file and
write it.
I'd be surprised if there weren't some high-level language in which
this was a one-liner.
--Chuck