How to split / truncate a string variable value in Assembly?
<p>I am currently working on a project and for storage's sake I would like to cut off a variable in assembly, and (optionally) make that the value of a register, such as eax. </p>

<p>I will need code that works with NASM using Intel syntax.</p>

<p>For example, if the variable "msg" is set to "29ak49", I want to take a part of that, like "9ak4", and put it in a register, or something similar.</p>