From the course: Learning Assembly Language

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Managing arrays

Managing arrays - Python Tutorial

From the course: Learning Assembly Language

Start my 1-month free trial

Managing arrays

- [Instructor] Let's take a look at handling arrays in assembler. We've already started to use arrays in our enigmatic encrypto. We've defined our messages with a character string, which is in fact, an array of bytes. At line 74, when we replace x in the input prompt by storing the displayable number one into edx plus 23. We storing our slots number into the 23rd element of a single byte array. Let's do some more array work. Firstly, I'll insert a new variable m24 db to the value of 24 and let's change line 37 to be slots with a slot array of three elements and we won't initialize them. We now have a slot array of three elements and we need to refactor our code to deal with this. We've seen how we can invoke sub programs with parameters. So let's replace the code starting at line 72 that sets up the three slots with a callable slot setup function. At line 52 we'll declare load slot as a frame with a parameter…

Contents