Learn the algorithm--num operation in MIX from the beginning

Source: Internet
Author: User

You've just seen the mix in the textbook order from the trip.
Num is a conversion operator that converts character encodings to numbers.
It converts the value of Registera & Registerx to a number and assigns a value to Registera.
The conversion process is byte-wise:
00,10,20,30,40,... Converts the character to the number 0;
01,11,21,31,41,... Converts the character to the number 1;
02,12,22,32,42,... Characters into the number 2, and so on.
If there is an overflow, Registera = value MoD b^5,b is the size of a byte.

//-----------------------------------------------------------

The question is, what is the mathematical significance of this operator? Why is there such an operation symbol?

Learn the algorithm--num operation in MIX from the beginning

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.