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.

Data types

Data types - Python Tutorial

From the course: Learning Assembly Language

Start my 1-month free trial

Data types

- [Instructor] We've looked at the MASM32 assembler but we'll be using the GoAsm64 assembler from here on in. The assembler instructions are the same and the syntax is largely similar. With the coding examples now, we'll start to build up our file encryptor demonstration program. I've got a new GoAsm64 classic console project opened called an enigmatic. I'll make a couple of changes to the skeleton Easy Code provides. I'll change the constant null to zero and check change the code to call, GetModuleHandleA. At the machine level, our smallest data type is a byte which we define with the declaration DB. So in the data section we can, write, for example slot1 db, and we'll set it to the value five, slot2 db, we'll set that to the value two, slot3 db, and we'll set that to the value three. Sometimes it's useful to declare a number of variables each with the same value. We can do this with the juke keyword. For example…

Contents