02: ARM Cortex-M Move Instructions

Sdílet
Vložit
  • čas přidán 29. 08. 2024
  • This video presents the general format of the ARM assembly language instructions and describes the simple MOV instruction, MOVT, and MOVW. In particular, we look at the immediate addressing mode as used with these instructions.

Komentáře • 26

  • @baglayan
    @baglayan Před 9 měsíci

    Thank you for this series, professor!

  • @Tapajara
    @Tapajara Před 4 lety +2

    I actually learned something from this video. Thank you.

  • @SuperWasabiking
    @SuperWasabiking Před 7 lety +4

    Great video

  • @alex2gokenzingen
    @alex2gokenzingen Před 3 lety

    Thank you for this good presentation!

  • @mk9834
    @mk9834 Před 5 lety +1

    very valuable lesson!

  • @dipankarpanda8414
    @dipankarpanda8414 Před 7 lety +1

    Again a gr8 video....

  • @FlorinPopa-mt8kx
    @FlorinPopa-mt8kx Před 4 měsíci

    0x11 in binary is 0b10001, and not 11 as you had it in your video

  • @1999gstephens
    @1999gstephens Před 5 lety

    Thank you so much

  • @koudshalitim3365
    @koudshalitim3365 Před 2 lety

    in the beginning of the video you said RO zill contain the 32 bits of the Immediate value but why 32 bits !!

  • @junetan168
    @junetan168 Před 7 lety

    does it mean that if u dont include the #, it will not be an immediate operand, n give priority to those that have #?

  • @JoseAlbertoDiaz
    @JoseAlbertoDiaz Před 9 lety

    What is the difference between the MOV instruction and the MOVW? Does the MOVW modify only the bottom part? I mean if R0 contains 0xFFFFEEEEAAAABBBB and I use the MOVW, MOVW R0, 0xA the result will be 0xFFFFEEEE0000000A??

  • @sibaprasad1803
    @sibaprasad1803 Před 6 lety

    awseome explanation

  • @MrGurkanify
    @MrGurkanify Před 8 lety

    Thank you Joe , when will you explain the stack on m3?

  • @chengyaozheng8536
    @chengyaozheng8536 Před 5 lety

    For the codes, do I need a STR line after a MOV line?

    • @kennethhass1647
      @kennethhass1647 Před 5 lety

      I'm sorry but I don't understand your question. The MOV instruction copies values between the registers, but you need an STR instruction to write a value out to memory.

  • @jugnu361
    @jugnu361 Před 6 lety

    salute

  • @bascelik91
    @bascelik91 Před 6 lety

    hi, can we write i.e. MOV R0,=0x1234? if can, what represents " = " ?

    • @joetheprofessor6260
      @joetheprofessor6260  Před 6 lety

      No, the MOV instruction can't use the = addressing mode. MOV allows an immediate operand with the # syntax but you can't use an arbitrary 16-bit or 32-bit value. The = is for a literal addressing mode which is actual a PC-relative memory reference, and memory references need an LDR instruction.

  • @10carlosavila
    @10carlosavila Před 3 lety

    Hello Professor Joe! I am a Latino who does not speak English and I would like to have the option to translate English into Spanish. Your videos do not have the option to make that option to change from English to Spanish. I would appreciate.
    Charles
    Panama

  • @lothaire67
    @lothaire67 Před 5 lety

    I'm french and I learning english but I don't understand the # symbol signification .. I think to the meided value, it's just?

    • @degamma8
      @degamma8 Před 5 lety

      its for commenting which is ignored by the computer

    • @degamma8
      @degamma8 Před 5 lety

      also to hard code variables

    • @bonbonpony
      @bonbonpony Před 5 lety +1

      @@degamma8 Not true (in this context at least). It is a prefix for the *immediate value* which is just a numeric constant embedded in the instruction itself instead of somewhere else in memory. If you don't know the right answer, shut up and stop confusing people.