Re: Question about jumps
- From: "Dragontamer" <prtiglao@xxxxxxxxx>
- Date: 28 Aug 2006 13:39:30 -0700
Markus Pitha wrote:
randyhyde@xxxxxxxxxxxxx wrote:
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.
May I suggest "Programming from the Ground Up" ??
Its a free book/free download but you can always buy it on
Amazon if you want a printed copy. It is specifically designed
to teach beginner programmers (not necessarily beginner
assembly programmers... it seems to be aimed at general
programmers).
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.
I also suggest then "The Art of Computer Programming" by Knuth.
It is an old book; and the assembly pardigm is stuck in the 1960s.
But because of the design of the MIX architecture he has... it is
bare to say the least. No OS to get in your way; and the 3 books
he writes are all in Assembly language.
Course; the point of the book is to teach you how to implement
algorithms at the lowest level... not to teach assembly language.
Anyway: RNGs are totally out of "assembly language" scope. A
total assembly n00b can write one if he understands _algorithms_.
So I don't expect you to learn anything from Assembly language
if you write your own RNG...
--Dragontamer
.
- 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
- Re: Question about jumps
- From: Markus Pitha
- 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
|