Re: Question about jumps




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

.



Relevant Pages

  • Re: Teaching (and Learning) Assembly Language, Part 2
    ... individual's needs when learning assembly language. ... much in the way of software development tools, ... limitations of a "source editor" provided with an assembler that forces ... the "assembly programmers" could get up to speed faster ...
    (alt.lang.asm)
  • Re: the quality of assembly language code
    ... Intel's compiler is supposed to ... I have found that I prefer 'C' and assembler roughly in inverse ... >> code than human beings writing raw assembly language. ... > assembly programmers and compilers. ...
    (comp.lang.asm.x86)
  • Re: Your opinion on the Agner fog manuals.
    ... Perhaps the fact that those "advanced assembly language programmers" ... Boy, you're really stuck on that *one sentence* in the documentation, ... Try searching for information about the LISA assembler sometime. ...
    (alt.lang.asm)
  • Re: Help with Enter and Leave Instructions
    ... FASM works pretty good under Linux, ... much like all those old DOS programmers who never could move ... because just about every other assembler on the planet does this. ... the big problem with being one of these pioneers you keep ...
    (alt.lang.asm)
  • Re: Faster HexToBuffer Routines
    ... assembly language and represents one of the main reasons for using ... programmers want doesn't mean everyone else is. ... they do use libraries when they are available to them. ... because your assembler has a broken design that doesn't allow the use ...
    (alt.lang.asm)