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.

Solution

Solution - Python Tutorial

From the course: Learning Assembly Language

Start my 1-month free trial

Solution

(upbeat music) - [Narrator] Okay let's take a look at how I responded to the challenge. At line six, there's some working storage for data used by the program. The bytes in and bytes out are used for the console input output and the H in and H out are handles that we'll use for the console. Charin is the input buffer and following this, we have some messages that we'll be using. Note that we have the two slot messages reading a slot X. We'll be changing these before we print. At line 18, we have a rotor structure followed by five instances of rotors. And at line 31, we have the slot structure. At line 43 there are two plugs for exchanging characters at start and end of the core encryption process. The standard startup code is at line 47 and our main line code starts at line 57. We make a call to get standard handle for the console input output, storing the values we get into the data areas, in and out, H in and H…

Contents