Encoding & Decoding MIPS Assembly Language Programming

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

КОМЕНТАРІ • 48

  • @Brlitzkreig
    @Brlitzkreig 2 роки тому +5

    Absolutely excellent video this man may have just saved my university career

  • @tuannguyentranle7151
    @tuannguyentranle7151 3 роки тому

    I'm a simple person, nothing else than appreciation and thankfulness. You're the saviour, salute to you!

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

    Thanks for the helpful video ! Well, he did mess up on bits and bytes but I still get his idea.

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

    Thanks for the initiative!

  • @Seieukos
    @Seieukos 9 років тому +6

    Hello!
    I have a question. How did you know how to rearrange XOR as RD, RS, RT? It doesn't show on my MIPS Reference Data sheet.

  • @aboudramlawi100
    @aboudramlawi100 8 років тому +13

    pls bro make a video that explain I and J types

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

    Can you link the second reference sheet used during 16:31 ?

    • @jytprf
      @jytprf 4 роки тому +1

      web.archive.org/web/20150218205622/www.eng.ucy.ac.cy/mmichael/courses/ECE314/LabsNotes/02/MIPS_Instruction_Coding_With_Hex.pdf

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

    Awesome explanation. Thank you for being so thorough.

    • @maddoxcaiden3510
      @maddoxcaiden3510 3 роки тому

      You probably dont care but does anyone know a way to get back into an Instagram account..?
      I stupidly lost my password. I would appreciate any tips you can give me!

    • @maddoxcaiden3510
      @maddoxcaiden3510 3 роки тому

      @Lewis Boston i really appreciate your reply. I found the site on google and Im in the hacking process atm.
      I see it takes a while so I will reply here later with my results.

    • @maddoxcaiden3510
      @maddoxcaiden3510 3 роки тому

      @Lewis Boston it did the trick and I actually got access to my account again. Im so happy!
      Thank you so much, you saved my ass!

    • @lewisboston6014
      @lewisboston6014 3 роки тому

      @Maddox Caiden Happy to help :)

  • @AKASHSOVIS
    @AKASHSOVIS 3 роки тому

    The Instruction Coding Sheet file doesn't exist. Help, please!!!

  • @DylanDalal
    @DylanDalal 4 роки тому +1

    Saved me. Thanks man!

  • @TrillDSeaux
    @TrillDSeaux 24 дні тому

    why did you not decoode from tthe hex rep

  • @kashifaliwadhio8548
    @kashifaliwadhio8548 3 роки тому

    Would you please tell me the starting song/music 😋

  • @Ghaleon15
    @Ghaleon15 7 років тому +1

    First of all. Thanks for this video !
    May I make a sort of "Dissambler" with this ?
    Read the dumped file by Mars as Binary and convert it to Mips Assembly ?
    I can read the file but can't make it work to convert the functions...

  • @JohnDoe-rx4ln
    @JohnDoe-rx4ln 9 років тому +10

    So much wrong or missing information... Op code has 6 bytes (8:46)? A byte is 4 bits so that would mean 24 bits for opcode. No, it has 6 bits; the size of the instruction is not 32 bytes, it's 32 bits, the size of register designation is 5 bits, not bytes. A fundamental and important difference. But why 5 bits? It takes 5 bits to encode a 32 bit value from 0-31 (i.e., 2^5 = 32). The arrow associating the function code to the operation is not right. Can't convert 13 to base 2 without a calculator? Sure you can... successive subtraction. 13 - 8 = 5 , 5- 4 = 1. Thus, 13 in base 10 encoded in 5 bits base 2 = 01101 (1*2^3 + 1*2^2 + 1^2^0). Can't convert 23? 23-16 = 7 - 4 = 4 - 2 = 1, meaning 10111 (1 for 16's place, 0 for 8's place, 1 for 4's, 1 for 2's, 1 for 1's). Why do you need binary to hex converter? Just group the binary values by 4 (each hex value is representative of 1 byte or 4 bits) and convert to base 16, with 9-15 = A-F respectively. Result would be 0x00EDB826 (groupings below).
    0000|0000|1110|1101|1011|1000|0010|0110
    0 0 E D B 8 2 6

    • @tobychow4761
      @tobychow4761 7 років тому +10

      jeez dude, relax. You could've gotten your point across without flexing your obvious superior intellect

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

      @@tobychow4761 He is not really flexing. This is pretty much common knowledge for anyone taking Computer Organization course. I did the same conversion he described in my head just before the dude on the video said this is not the video to explain how you come up with the hex version. Just make groups of 4 bits just like John Doe described and then see how many 8+4+2+1 or 8 + 2 or 4+2+1 or what ever the four bits tell you to add up. then take that number and convert it to the hex version OR look right on the MIPS reference Data page. It is all right there.

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

      @xOr A byte is not 4 bits. A byte is indeed 8 bits.

    • @liquidred257
      @liquidred257 3 роки тому

      Ya was I the only one who was lost when he said 31-26=6? Because it’s 5. Is that what you’re getting at @John Doe ?

  • @Strasbourgeois
    @Strasbourgeois 3 роки тому

    you can convert any value to any base in the browser console.
    (value).toString(base);
    e.g.
    decimal to binary: (192).toString(2) //output: 11000000
    binary to decimal: (0b11000000).toString(10) //output: 192
    binary to hex: (0b11000000).toString(16) //output: c0
    hex to binary: (0xc0).toString(2) //output: 11000000

  • @lieselv6770
    @lieselv6770 7 років тому +1

    This was so helpful!

  • @robertcooper3746
    @robertcooper3746 4 роки тому

    So why not use a binary converter on rapid tables? www.rapidtables.com/convert/number/ascii-to-binary.html or is the goal to identify the type of mip?

  • @liquidred257
    @liquidred257 3 роки тому

    Whyd he say 31-26=6 @8:46 ish?
    Otherwise fantastic video

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

    Lets say I do a beq $t2, $s0, E : How do I know on which address my label "E" is for the immediate value? The only information I have is that the linker of the code starts at address 1000 ?

  • @lh2057
    @lh2057 2 роки тому

    Thank you!

  • @billythesunbeltsamurainapi3670
    @billythesunbeltsamurainapi3670 7 років тому +3

    a binary digit is not a byte it is a bit. a byte is eight binary digits.

  • @KnightDark1233
    @KnightDark1233 7 років тому +15

    32 bits not 32 bytes fam

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

      Cameron Farzaneh yes, pretty important distinction if you’re learning about MIPS once you get into dealing with the stack

    • @Stefan-st
      @Stefan-st 4 роки тому

      Up

  • @irinaalekseyeva2584
    @irinaalekseyeva2584 6 років тому +2

    Thank you for a great video! it was really helpful! ( P.S. bits)

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

    Hi The Simple Engineer,
    What software are you using in this video?

  • @ironears
    @ironears 8 років тому +1

    Thank you so much!!! You saved me from my own stupidity :)

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

    how's this gonna be "opcode of I is known from the function code" ?

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

    the link has been removed pls gave us a new one

  • @guzman-do
    @guzman-do 3 роки тому

    not 32 bytes .. a mips word is 32 bits (4 bytes)

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

    Beautifully explained. Please ignore comments made by somebody about bit/byte tongue slip errors. This is great tutorial. Please make a video on I and J also. If your precious time permits please make a video on 8086 processor for the same topic. Thanks for your time and effort to upload this video.

  • @aboudramlawi100
    @aboudramlawi100 8 років тому +1

    TY BROOO

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

    For anyone looking for the Instruction Coding Sheet that was removed you can find it here www3.cs.stonybrook.edu/~lw/spim/MIPSinstHex.pdf

  • @joshcullings856
    @joshcullings856 6 років тому +3

    You keep using bits and bytes interchangeably. These are not the same things and it will be confusing for newcomers

  • @beb9632
    @beb9632 3 роки тому

    Working link for Instruction Coding Sheet: pdfcookie.com/download/mips-instruction-coding-with-hex-52e1opmndwv8

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

    PRO - LEGIT - GOD!

  • @jonathanharris2326
    @jonathanharris2326 3 роки тому

    I think he's mixing up bytes and bits in his instruction