Re: Programming: Not stressful? Yeah, right...




Dave wrote:
> Whoever said programming is a low stress hobby/career has
> obviously never attempted to programm in ASM. For months I was
> debating whether or not I should learn ASM, and for some stupid
> reason, I decided to breakdown and buy a few books about it.
> It's been about 3 months since then, and I've never been so
> stressed out in my entire life trying to learn it. It's just too
> difficult. I have a strong background in C and C++, so I thought
> I'd pick up ASM quickly. Boy, was I ever wrong.
>
> I have a deep respect for all of you ASM programmers out there.
> I really do. I'm glad you had the patience to learn it...

(1) Think in terms of the goal of each set of instructions and hang a
comment to the right of each set (but don't comment every line).

(2) Use "virtually structured" style such that if you use go to, it
flows downward, not to instructions but to pseudo-instruction
placeholders defined only as the location of the next instruction
(often called EQ or EQUATE), or upward to a similar statement in a
structured loop.

A "virtually structured" assembler program is one whose flowchart is
restricted to the Bohm-Jacopini structured constructs exclusively.

(3) Make friends with the macro processor for common small sequences of
instructions. In C the corresponding preprocessor is mostly a waste of
time whereas in assembler it allows the symbolic representation of
otherwise generically named registers and facilities and processing
that depends upon conditions set at assembler time.

(4) Use Hungarian notation

.



Relevant Pages

  • Re: maybe a bit OT: EEPROMs and PCs
    ... Plain any ASM or some special ... I use the term 'bare metal' for a programming style: ... I came across "EPROM ... |> | Can I use a normal assembler to make the binaries I can burn directly? ...
    (alt.lang.asm)
  • Re: HLA Stdlib v2.2 is now available.
    ... Its a generalization of the whole asm community based on the results of a single man. ... You dont get it. ... Because it is an assembler, and a very good one, showing the way for other spesific assemblers. ... As they both are needed for doing programming, I see no reason to seperate them. ...
    (alt.lang.asm)
  • Re: What do I do with Art Of Assembly?
    ... >> and spit it out into an EXE file then, with ASM coding, it's ... > whether HLA is an assembler or not. ... instructions" such as macros, section declarations, MASM's "HLLisms" ... forms of "JMP" as 4 of the encodings may take a size prefix to select ...
    (alt.lang.asm)
  • Re: Trivia Question
    ... This is what I meant by "ignorance". ... people's *existing* HLL knowledge to learn assembly language programming? ... Which I had such an assembler when starting with Delphi. ... After working with the needed instructions some times, repleatly, they tend to stick around in your memory. ...
    (alt.lang.asm)
  • Re: Evolution
    ... >> it different from HLL programming? ... inline assembler and larger parts by linking to an assembler ... the macro is from a macro library which you have written a long ... or two instructions if you ...
    (alt.lang.asm)