As for how to convert ascii code into binary data of 10, in fact, there is no need for special explanation in this case, because it is 0-9 ascii code, and the corresponding ascii code range is 48-57. You just need to subtract 48 directly from the address of DB 12. DBB7 obtains 10 binary data (of course, there is no arithmetic operation of byte data in step7).