Re: Question about jumps



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

.



Relevant Pages

  • 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: The Lib debate
    ... > I guess you only know Linux from hearing it in the newspapers commercials paid ... It is not a problem for source-level libraries at all. ... I am talking about assembler ... if you use precompiled libraries written on HLL? ...
    (alt.lang.asm)
  • Re: Getting NASM from C
    ... > become convinced that Unix assembly program should access the ... The proposed Linux Interrupt List will simply un-cruft those ... certainly not the developers of LuxAsm. ... assembler for Linux makes little sense. ...
    (alt.lang.asm)
  • HLA compilation fails with no obvious errors.
    ... planning on doing my work in a Linux virtual machine through VMWare ... heres the output from the command I ran to compile it: ... HLA Parser ... Using flat assembler version C1.66 ...
    (alt.lang.asm)
  • Re: Significant Pure Assembler Application In MASM ?
    ... RosAsm would just mean nothing at all. ... I was seeing a lot of APIs that, I'm not sure what they do, but I don't think there's a Linux equivalent. ... Implement the ELF Format. ... "just the assembler" plus whatever else *isn't* dependent on OS - if the "two click disassembler could be made to work - even if it worked by temporary files, rather than into a GUI - would be a tremendous help in building the GUI back into it, in Linuxese. ...
    (alt.lang.asm)