Re: Why I stop attacking HLA



randyhyde@xxxxxxxxxxxxx" wrote:
> Herbert Kleebauer wrote:

> The only problem is that you cannot give substantial assignments during
> the first couple of weeks because they don't know enough machine
> instructions to do this. Hence the use of HLL-like control structures
> during this time period.

Ok, let's get more concrete. Give us an example of an assignment which is
easier to solve in the first few weeks if you use HLL control structures.


> for example). You seem to think that students can absorb all this
> information at once. They cannot.

Even Beth couldn't write more than a few sentences to explain the flags.

There are 4 FlipFlops (a FlipFlop is a hardware circuit which can store
a single bit) which are set or reset by most of the ALU operations. For
the add/sub instructions the meaning is:

Z: set if the result is zero, cleared otherwise
N: set to the most significant bit of the result
C: set if there is an overflow for unsigned operands, cleared otherwise
V: set if there is an overflow for signed operands, cleared otherwise

Now show me, which of the above can't be understood within two
minutes by someone who was able to pass high school.



> > And if they know the flags, which "experience" do they need to
> > understand "jump if carry flag is not set"?
>
> It's a completely different programming paradigm for them. You're

Even if somebody knows nothing about programming at all, he understands the
sentence:

If the C FlipFlop is set continue with program execution at position
xyz, otherwise execute the next instruction.


> First
> you teach them about the flags. *Then* you teach them how the Jcc
> instructions operate. *Then* you teach them how to construct statements
> like IF/WHILE/SWITCH/etc using these statements. This process takes a
> couple weeks *after* they've already learned quite a bit of the
> instruction set already.

I always thought, 60 seconds are called a minute and not a week.


> Been there, done that. By the end of the quarter they've not gotten as
> far as when they've started with a high-level assembler. That's the
> bottom line.

Maybe that's the fault of the teacher and not of the students.
.



Relevant Pages

  • Re: Why I stop attacking HLA
    ... > about four or five machine instructions, a few variable declarations, ... If I had assumed that they know what a FlipFlop is, ... set if there is an overflow for unsigned operands, ... What has it to do with assembly programming that you are called "Randy"? ...
    (alt.lang.asm)
  • Re: Why I stop attacking HLA
    ... >> If I had assumed that they know what a FlipFlop is, ... - that a program is executed by the processor as a sequence of CPU instructions ... facts if they are not are also told, ... later are useful/necessary for assembly programming. ...
    (alt.lang.asm)
  • Re: "Mastering C Pointers"....
    ... A program is a stream of instructions (pretend they ... to store a word from a CPU register to memory. ... All the instructions only work on CPU registers. ... the programming world, which makes it very hard for novices. ...
    (comp.lang.c)
  • Re: question about tasks, multithreading and multi-cpu machines
    ... instructions ... then the sequence is really a sequence and I'm talking ... I would like to have seen Ada 2005 address parallel programming better, ... In addition to lightweight concurrent statements, ...
    (comp.lang.ada)
  • 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)