#34 -- Assembly language intro

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 39

  • @timothyreheht6485
    @timothyreheht6485 8 років тому +15

    video starts at 5:15

  • @johnadriaan8561
    @johnadriaan8561 8 років тому

    +Pa Sander was confused by the same thing I was. @13:40-14:05, Bruce Land makes two statements: "R28 & R29 are used by the hardware as a stack pointer" but that you can use them if you "save them to the stack". There is no point locking the piece of paper holding the combination of the safe inside that very safe!
    Actually, the hardware stack pointer registers SPH:SPL (called SP) are I/O registers, not general-purpose registers. R29:R28 (called Y) must be being reserved by the compiler (not the hardware) for another reason - perhaps as a stack frame pointer for the current function? Note also that he glosses over the fact that there are three 16-bit registers: X=R27:R26, Y=R29:R28 and Z=R31:R30.

    • @ece4760
      @ece4760  8 років тому

      I should have said used by GCC as a stack pointer.

  • @murrij
    @murrij 10 років тому

    Thank you Mr Land for putting up the courses you have. I've been learning a lot.

  • @NicDade
    @NicDade 7 років тому

    The ___volatile___ is used to force the compiler not to optimize the inlined asm block away entirely if the outputs aren't used later on. So in the case of this multiplication function we wouldn't want ___volatile___ , just in case the compiler could figure the output isn't used and optimize it all away. ___volatile___ is needed when the inlined assembly has no return value and is being called for its side effects. For example assembler to enable or disable interrupts or other CPU state.

  • @ece4760
    @ece4760  11 років тому +4

    I find that using a projector is useless for learning. All of the code is online at the link given in the video comments, so you can always refer to that (as the students do) while you watch the lecture.

    • @frankhaugen
      @frankhaugen 11 років тому

      Projectors are useless! I just spent a few days giving high-intensity all-day lectures in programming basic concepts. I tried using a projector, but I ended up only doing my slides on it and wrote on a whiteboard, (the blackboard suck, use a whiteboard with multi-coloured pens).
      Writing a lot of code by hand and using arrows to indicate what is referring to what, and being able to visually answer the questions was much better than typing on the PC.
      A smartboard might be the holy grail, but they aren't ubiquitous in lecture halls yet ;-)
      Old school is sometimes better!

    • @iberiuspred4906
      @iberiuspred4906 10 років тому

      Frank R. Haugen
      A good blackboard is generally better than whiteboard. A chalk either writes properly or it does not, there is no in-between. And there are chalks of different colors available too.
      With whiteboard pens, they fade gradually and dry out if the lecturer forget to put the cap back on. While fading and a stubborn lecturer who refuses to replace the bad pen with a fresh one it puts a serious strain on the audiences' eyes. The board is blank so light coming from the wrong angle (such as sunshine from the window) will render the board unreadable for people sitting on the wrong seats.
      So I cannot agree that a whiteboard is better than a blackboard.

  • @NexusCool1
    @NexusCool1 10 років тому +14

    cant wait for the day you can just download all this into your brain

    • @ece4760
      @ece4760  10 років тому +11

      Me too.

    • @jl1267
      @jl1267 5 років тому +2

      Know this is a 4-year old comment, but, no... You don't want that. If you can have this uploaded to your brain, you can have any number of terrible things uploaded to your brain. Do you really want other people to have a way to give you false memories? Scramble your reality? Convince you that it would be okay to kill a certain group of people? Based on said scrambled reality? Or get you to commit suicide by just uploading nothing but depressing false memories?
      Advise against this ever being a thing, the risk too great.

  • @joker28666
    @joker28666 9 років тому +3

    i feel like i should be paying for this, great stuff man

  • @TheStevenWhiting
    @TheStevenWhiting 11 років тому

    For something as complicated as Assembly it's always best to use a projector and typing out what the commands are. Writing on a blackboard with chalk when your writing is a bit whack (the r's looking like Vs) and the blackboards are in shitty condition is painful.

  • @8-bitBishop
    @8-bitBishop 11 років тому +1

    I am totally new to assembly. Can you recommend a book or video that I can familiarize myself with assembly, with the intention of eventually programming for the 6502? Specifically the modified 6502 for making NES games. Thank you.

    • @cellulardialtelephone5787
      @cellulardialtelephone5787 6 років тому

      Never too late to reply. Commodore VIC-20 Programmer's Reference Guide will do the trick. Available here: cbm.6502.org/etexts-vc-name.en.html

  • @ece4760
    @ece4760  12 років тому +1

    The link comment on the video has a lot more information.

  • @ece4760
    @ece4760  11 років тому

    I don't know whether to take this a a rude complement or an complaint.

  • @pasander4371
    @pasander4371 9 років тому

    How can pushing it on the stack deal with R28, R29 being reserved for stack pointer? I think that had him confused after he said it as well.

    • @ece4760
      @ece4760  9 років тому +1

      +Pa Sander How about giving a time stamp so I can look at it?

  • @jhalvico
    @jhalvico 12 років тому

    Maybe in other subject continues teaching assembly language???

  • @farismaroc007
    @farismaroc007 12 років тому

    Plz complet the coures assembly

  • @ece4760
    @ece4760  12 років тому

    There is an advanced course, but it concentrates on building hardware.
    google ece5760

  • @cmasekar
    @cmasekar 11 років тому

    starts around 5:19

  • @yankumar5280
    @yankumar5280 10 років тому

    thanks for sharing Bruce Land

  • @jzpatelut
    @jzpatelut 11 років тому

    THANK YOU DEAR i APPRECIATE THIS VALUABE COURSE ON ASSEMBLY....jzpatelut...

  • @mokopa
    @mokopa 5 років тому

    Pavel is the real MVP

  • @Eng.gamers
    @Eng.gamers 11 років тому

    Thanks so much :)

  • @farismaroc007
    @farismaroc007 12 років тому

    Ok thanks

  • @mariojenkins1471
    @mariojenkins1471 9 років тому

    Finally I can Learn something, I'm a dummy compared to you
    Become Smart or smarter........

  • @bilgiyay1
    @bilgiyay1 9 років тому +2

    seni dinleyenlere Allah yardım etsin :D