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 - Python Tutorial
From the course: Learning Assembly Language
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Calling subprograms9m 20s
-
(Locked)
Working with floating point6m 23s
-
(Locked)
Managing arrays4m 43s
-
(Locked)
Adding plugs to the Enigmatic encryptor2m 54s
-
(Locked)
The Windows API5m 4s
-
(Locked)
More on the Windows API4m 20s
-
(Locked)
Calling the printf external function1m 33s
-
(Locked)
Executing system commands1m 54s
-
(Locked)
Jump tables3m 29s
-
(Locked)
Reading data files6m 33s
-
-
-
-
-