Brett?
The old sudo.com conversion ...
snippet:
The source code:
@=$100
bclr.w #10,sr
;***********************************************************************
; read 81 digits from stdin, anything else is ignored, 0 for unknown
;***********************************************************************
move.l #brett,r5
move.l #81,r2
Oh, okay. With _japheth's debugger I "fixed" my copy of the program
and got it to assemble. (And run.)
Might get a squawk from hutch--
Nah. Its not the main topic, but a sideline. Go for it. Either that, or post it in 16 bit DOS subforum as a new topic...or attach it here as a .zip file.
On second thought, I probably would not be able to make heads nor tails of it. And no way to interface it with anything I would otherwise use it for, if it were 32 bit - leaving me frustrated and in a dilemma.
I'm sure that you are familiar with those issues.
Okay, attached. Code, DOS executable, and sample output. I quit at three
digit numbers. If you look at the code you will get the idea with just that.
After all no one is going to use it anyway.
The code is fairly straight forward. (I think/hope.) You should have no
problems understanding it. If you do ... ask a question? And you should be
able to use whatever looks interesting without too much effort. After all,
16-bit code is supported with the 32-bit X86 instruction set. I think only
three DOS functions are used, so translating those should not pose
insurmountable problems. The only gotcha I see is the 16- bit addressing
of the data.
HTH,
Steve N.