Re: Question about jumps
- From: Markus Pitha <ngNOSPAM@xxxxxxxxxx>
- Date: Mon, 28 Aug 2006 18:18:17 +0200
randyhyde@xxxxxxxxxxxxx wrote:
Of course it is. But do you need to learn this first? Could it possibly
be that there are other things that are more important to master first?
Maybe but I have to learn everything at any rate.
Now *you* may be one of the exceptions, but in my experience, putting
off things like flags and conditional branches until people have
mastered basic things like the simple sequential instructions, basic
data types, and basic program organization, works a lot better.
Sure, but you can't image how often I already heard what a loop or a data
type is.
Well, I'm not going to argue with you over this other than to say that
the questions you're asking seem to suggest that if you'd learned the
information in a different order you'd probably be having an easier
time of it.
You aren't going to learn any less by using your existing
knowledge during the early phases of your assembly education.
That's what I actually do.
Did your C knowledge not help you when learning Perl? Do you think your
C and Perl knowledge won't help you when you learn Java and C#? Why
should you start completely over when learning assembly language?
That's what you're suggesting that you do?
Yes, but I don't start completely over. It's logical that I have to look,
e.g. how loops are built in assembler language but I don't have to repeat
what loops are.
Here's the danger with "finding library code on the internet" and
trying to employ it in your own code -- the code above is almost
certainly 16-bit DOS code. As best I can tell from your other posts,
you're trying to learn assembly under Linux (this would be my guess
because of the presence of INT 0x80 statements in your code). The code
above will *never* work properly under Linux. You'll spend a lot of
time unproductively messing around with the above simply because you
don't realize how different 16-bit code is from 32-bit-flat-model code
like that which Linux uses.
But these are niceties, an assembler beginner like me can't recognize at
the beginning. And yes, I use assembly under linux.
OTOH, if you had kept reading through AoA, you probably would have
learned that you can call one of several nifty little random number
generators that are present in the HLA Standard Library.
That's exactly what I don't want. It's like in C, including any libraries,
but I want to know what these little gremlins in the background do.
Regards,
Markus
.
- Follow-Ups:
- Re: Question about jumps
- From: Frank Kotler
- Re: Question about jumps
- From: randyhyde@xxxxxxxxxxxxx
- Re: Question about jumps
- From: Dragontamer
- Re: Question about jumps
- References:
- Question about jumps
- From: Markus Pitha
- Re: Question about jumps
- From: rhyde
- Re: Question about jumps
- From: Markus Pitha
- Re: Question about jumps
- From: rhyde
- Re: Question about jumps
- From: Markus Pitha
- Re: Question about jumps
- From: randyhyde@xxxxxxxxxxxxx
- 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
|