Re: Two Click disassembly/reassembly
- From: "Evenbit" <nbaker2328@xxxxxxxxxxx>
- Date: 22 Jan 2006 09:14:16 -0800
Frank Kotler wrote:
> > Might be interesting to read any comments if yours and
> > Randy's versions were to be posted there as alternatives. I can "proxy
> > submit" them if you two don't mind and can give the attribution as
> > "found on the 'net" or "version suggested by ..." if either of you have
> > an issue with your names appearing on a website (which your minister's
> > wife can access) directly associated with the word "beer"?
>
> I've got no problem with it either way
Oh, what was I thinking? Churches tend to burn down when *you* pass
by. :)
> I suspect
> the way I allocated a buffer could be done in a more "hla-like" way. I
> tried several permutations of "string", but anything I could get hla to
> swallow segfaulted...
>
> static
> english_number :byte[128];
> ...
> conv.utoEng( ecx, &english_number );
> ...
>
> Seems to work okay, but there's probably a "nicer" way to do it. If it's
> going up as an "example", it ought to be "nice".
There several dozen different methods given in the text and the
examples that it is difficult to decide which is "nicest" or the
"official" way.
One way...
static
mystring :string := "19 dummy characters";
var
pMyString :pointer to mystring;
Another way...
static
s :string;
...
mov(str.alloc(256), s);
Yet another way...
static
MyText :str.strvar(256);
Can't think of the others at this moment, but this short list should
help you investigate the issue.
> But don't put Randy's code on the "99 Bottles" site until he gets it
> right! That's the first rule of assembly homework, as I understand it,
> "must assemble". :)
Well, we can at least give him half of a gold star and a C- for getting
it to work on Windows. :)
Nathan.
.
- Follow-Ups:
- Re: Two Click disassembly/reassembly
- From: Frank Kotler
- Re: Two Click disassembly/reassembly
- References:
- Two Click disassembly/reassembly
- From: randyhyde@xxxxxxxxxxxxx
- Re: Two Click disassembly/reassembly
- From: Frank Kotler
- Re: Two Click disassembly/reassembly
- From: Evenbit
- Re: Two Click disassembly/reassembly
- From: Frank Kotler
- Two Click disassembly/reassembly
- Prev by Date: Re: a challenge
- Next by Date: Re: a challenge
- Previous by thread: Re: Two Click disassembly/reassembly
- Next by thread: Re: Two Click disassembly/reassembly
- Index(es):