Added: 3 years ago
From: StanfordUniversity
Views: 19,249
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (18)

Sign In or Sign Up now to post a comment!
  • thanks

    at 21:25

    a line is messing

    sp = sp + 8;

    sp = sp + 4; <==== this line to deallocate i space

    RV = 0;

    RET;

  • Comment removed

  • Is that for the undergraduate students ?

  • learn together.my twitter ID:caiyuhui. follow me plz

  •  snink snink!

  • There's a lot of concepts covered here: stack, SP, activation record, local vars, parameters passing, pointers, return address.

    Motorola 68K has 8 bytes in between local vars and parameters. 4 bytes for the saved PC, and 4 for saving the old value of A6 which is a local stack pointer. LINK creates the space on the stack and initialises A6 to point to it. You access local vars and parameters through A6, and SP is used for dynamically allocating stuff on the stack.

  • Does anyone else find Professor Cain's little "gulp" noises to be hilarious? Once I noticed them I can't stop noticing them. There's a great one just after 3:00 - he does them in all the videos.

  • Any way to watch this on 1.5x speed? I find it easier to follow televised lectures if they're sped up.

  • download it first, then you can speed up your player. I also found it easier to watch at 1.5

  • Makes sense!

  • More curious students will want to also read 'Smashing the Stack for Fun and Profit' by Aleph One. ; )

  • @moeibrahim1 thx will read

  • who is the best, Jerry Caln is the best

  • i don't think so

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more