Re: Question about jumps
- From: "randyhyde@xxxxxxxxxxxxx" <randyhyde@xxxxxxxxxxxxx>
- Date: 30 Aug 2006 14:16:23 -0700
Herbert Kleebauer wrote:
Evenbit wrote:
...and then you add some more until you run into code that doesn't
work...
I don't understand the purpose of the macros.
I'll bet Evenbit doesn't understand your non-standard mnemonics,
either.
If they are
only a few instructions, then write them directly into the
code (makes the code better readable).
Try reading the Pragamatic Programmer sometime.
Macros are a great tool for commonly-used sequences (even if they are
short) to prevent entering repetitive code into a program.
And if they are many
instructions, write it as a subroutine and not as a macro.
Surely you understand the difference between a macro and a subroutine
and why you would choose one over the other?
The
same program in a readable version without any macros:
"Readable" is highly debatable, given the proprietary nature of your
assembler's syntax.
Cheers,
Randy Hyde
.
- Follow-Ups:
- Re: Question about jumps
- From: Betov
- Re: Question about jumps
- From: Evenbit
- Re: Question about jumps
- References:
- Question about jumps
- From: Markus Pitha
- Re: Question about jumps
- From: Evenbit
- Re: Question about jumps
- From: Evenbit
- Re: Question about jumps
- From: Herbert Kleebauer
- Question about jumps
- Prev by Date: Re: Question about jumps
- Next by Date: Re: Question about jumps
- Previous by thread: Re: Question about jumps
- Next by thread: Re: Question about jumps
- Index(es):
Relevant Pages
|