From 9c1d6ca227421a739548c823280ec07a00fd36fe Mon Sep 17 00:00:00 2001 From: Anish Mandalika Date: Wed, 14 Apr 2021 18:47:48 -0400 Subject: [PATCH] Fixed link to memory addressing slide in lab08-64bit --- labs/lab08-64bit/index.html | 2 +- labs/lab08-64bit/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/labs/lab08-64bit/index.html b/labs/lab08-64bit/index.html index 78826baaf..33987395e 100644 --- a/labs/lab08-64bit/index.html +++ b/labs/lab08-64bit/index.html @@ -164,6 +164,6 @@

Sample Execution Run

Once you have completed the in-lab, submit linearSearch.s, testLinearSearch.cpp, and your Makefile

Hints

Accessing Array Elements in Assembly

-

Recall that C++ arrays are stored contiguously in memory. This means that if you know the start address of the array &a, and the size of the elements that are being stored, you can find the address of an element at any index i with &a[i] = &a + <size_of_elements>*i (if the array is one-dimensional). Use this fact along with the memory addressing slide from lecture to access array elements in assembly.

+

Recall that C++ arrays are stored contiguously in memory. This means that if you know the start address of the array &a, and the size of the elements that are being stored, you can find the address of an element at any index i with &a[i] = &a + <size_of_elements>*i (if the array is one-dimensional). Use this fact along with the memory addressing slide from lecture to access array elements in assembly.

diff --git a/labs/lab08-64bit/index.md b/labs/lab08-64bit/index.md index e94bb2528..279dc0631 100644 --- a/labs/lab08-64bit/index.md +++ b/labs/lab08-64bit/index.md @@ -213,4 +213,4 @@ Once you have completed the in-lab, submit linearSearch.s, testLinearSearch.cpp, #### Accessing Array Elements in Assembly #### -Recall that C++ arrays are stored contiguously in memory. This means that if you know the start address of the array `&a`, and the size of the elements that are being stored, you can find the address of an element at any index `i` with `&a[i] = &a + *i` (if the array is one-dimensional). Use this fact along with [the memory addressing slide](../slides/08-assembly-64bit.html#/3/8) from lecture to access array elements in assembly. +Recall that C++ arrays are stored contiguously in memory. This means that if you know the start address of the array `&a`, and the size of the elements that are being stored, you can find the address of an element at any index `i` with `&a[i] = &a + *i` (if the array is one-dimensional). Use this fact along with [the memory addressing slide](../../slides/08-assembly-64bit.html#/3/8) from lecture to access array elements in assembly.