Saturday, March 13, 2021

Working with Strings

  • A string is just an array having characters as element. Each character is converted into Hex representation.

.data
myString BYTE "A", "B", "C", "D", "E"

.code
mov esi,offset myString



  • The declaration above can be shorten in this way to mimic a traditional “string” on high level programming languages.

.data
myString BYTE "ABCDE"

No comments:

Post a Comment