This little video explained in simple terms that last 2 weeks of my graduate level class. Thank you!
@saoussenslii
5 жыл бұрын
excellent video but please work better on the sound quality
@comparchi4096
4 жыл бұрын
Your videos are so helpful and easily understandable. Thank you very much!!!!!
@johndoesson
4 жыл бұрын
Wait, @19:05 , shouldn't denominator and numerator be opposite, the numerator is the second member of the struct and should therefore have an offset 4 from &F and denominator is first member, therefore offset = 0? In other words, the other way around from in the video.
@gedare
4 жыл бұрын
Good question. The order of explicit initializers doesn't need to be in the order of the struct. I haven't checked the struct definition, so the numerator is the first member
@johndoesson
4 жыл бұрын
@@gedare ohh okay, so if I understand correctly, the order of the members doesn't matter when we talk about where they are stored in memory. You define/tell the CPU to store the numerator next to the base adress of the struct and the denominator next to the nominator in memory. Then it makes sense, thanks! Edit: the order of declaration of the members*
@gedare
4 жыл бұрын
@@johndoesson check @17:45 where the struct is defined. That is where the order of the fields is determined. When we assign values to those fields, it doesn't matter what order we assign them (when we use that explicit dot-notation to initialize the struct).
@tinomudaishechitsiko4604
6 жыл бұрын
Thanks man your tutorials are brilliant
@kronkodile
6 жыл бұрын
for the code "lw $t0, 12($s3)" - How do we know that 12 corresponds with the array at index three? Does A[3] = 12? I am wondering if this references the first part of the video where it says the ADDRESS at A[3] is 0x1001000C, and C in hex is 12. Please let me know :)
@PattyCali
5 жыл бұрын
Jacob Long I think it is because each word contains 4 bytes so to count for 3 words (4 * 3 = 12 or 4(word) + 4(word) + 4(word) ) you need to load 12 over the register $s3
@comparchi4096
4 жыл бұрын
here lw $t0, 12($s3) where A[0] in $s3 ,means t0=A[0]+12, t0=A[0]+4*3 , t0=A[3] ; Where A[0] is moves to 3 registers after and length of each memory is 4 bytes
@believadyanne5634
4 жыл бұрын
hey does anyone knows how to get the offset for memory address? i am currently need help to store word but i dont understand how to get the offset for addressing the memory.
@deathbyvinyl
Жыл бұрын
@stund ogha what if its variable offset
@deathbyvinyl
Жыл бұрын
@stund ogha like $t0($t6)
@willywaldbrand3337
10 ай бұрын
Great video, thanks!
@4O8
Жыл бұрын
thanks !
@ardiimeri2659
2 жыл бұрын
Hello can you help me to convert this C++ code to MIPS #include using namespace std; int largest(int arr[], int n) { int i; // Initialize maximum element int max = arr[0]; // Traverse array elements // from second and compare // every element with current max for (i = 1; i < n; i++) if (arr[i] > max) max = arr[i]; return max; } // Driver Code int main() { int arr[] = {10, 324, 45, 90, 9808}; int n = 5; cout
Пікірлер: 24