Nybbles and MouseBytes: Ep4: Branching Instructions

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

КОМЕНТАРІ • 24

  • @kitzibu
    @kitzibu 5 років тому +4

    Am I the only one simply not getting this? It really feels like half the required information is missing. Care to explain in more detail, how you get from "if cmp is the if Part, the B** Instructions are the "Then" Part" to "A $1300 DO FE BNE $1300" ?? Where is a comparison here? Why do you branch if is not equal to back to $1300 if the FE already takes us those two steps back?

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

      The CMP instruction compares two values, usually the value of a register and the value stored in a given memory location. It sets one or more flags (bits) in the status register to indicate the results of the comparison. The branch instructions then check one of the flags to determine if the branch should be executed.

    • @kitzibu
      @kitzibu 5 років тому +1

      @@diggydude5229 Thanks for taking the time to type in your reply but I really don't see how it would answer my question.

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

      Yeah, I explained how CMP works in Nybbles and MouseBytes: Ep3: Comparison Instructions ua-cam.com/video/8Cp9aBzZ9NM/v-deo.html -- apologies for getting into this one a bit faster and without an example. I'll be sure to include examples in every video from here on out.

    • @NybblesandBytes
      @NybblesandBytes  5 років тому +3

      Also, I'll try to group related instructions together next to try to keep them in a more coherent vid.

    • @NybblesandBytes
      @NybblesandBytes  5 років тому +6

      @TheKetsa The CMP instruction clears the Z flag. And I don't appreciate the "he/she/whatever" -- I have a name. Please use it, and please be respectful.

  • @diggydude5229
    @diggydude5229 5 років тому +6

    There are a few channels where I immediately click when I see a new video. This is one of them. Keep up the good work, June!

  • @milk-it
    @milk-it 5 років тому +1

    Thanks, June. This delineates nicely between jump and branch instructions, elucidating the need to pay attention to the addresses and registers concerned.

  • @RETROCENGO
    @RETROCENGO 5 років тому +6

    Hi N*B really like your videoes, right to the point and informative👍🏻😊
    -Retrocengo

  • @einjen
    @einjen 5 років тому +1

    I really love this! Thanks for great content. I wish I had this when I was 15.

  • @lasseodin
    @lasseodin 5 років тому +1

    Love it. Keep it coming

  • @tonysofla
    @tonysofla Рік тому +1

    If the loop is always below 128 and you need to count down to and including zero, BPL is a great.

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

    I noticed the production quilty of your videos just got a lot better. Good job. These videos are just a little to advance for me yet but when I catch up I will be revisiting all of these. I just add you to my very short list of patron creators, because I hope you keep making these videos.

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

    4:42 Both of those CMP $FF should be CMP #$FF, though they'd be correct if you happen to have $FF stored *in* $FF :)

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

      8-Bit Show And Tell Yep, you're right. Not sure where my head was on that.

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

    0:49 There's only 7 flags in the 8502 status register; bit 5 is unused.

    • @NybblesandBytes
      @NybblesandBytes  5 років тому +1

      Yeah, I covered this in the first episode. It's a verbal gaffe, but yes, 7 flags in an 8-bit register.

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

    Does anyone know if June's C128 screen code cheat sheet is the same for the C64(I'm very new to coding)

    • @NybblesandBytes
      @NybblesandBytes  5 років тому +1

      The memory address starting position will be different for the C64.

    • @1stacbats
      @1stacbats 5 років тому +1

      @@NybblesandBytes thank you 🤗