I was wondering how you convert from 8-bit add-on 2 to 16-bit 2-digit number?
1100 0110 - example
It is called a sign extension . You simply repeat the most significant bit until you get the right number of bits. For your example, this will be 1111 1111 1100 0110
Source: https://habr.com/ru/post/1441042/More articles:gcc preprocessor typedef replacement name - cWhat is the easiest way to extract a string from an xml file layout file into a strings.xml file? - androidBlack screen for Android application - androidWhy Asp.net MVC4 Cannot Use SQL Server Session State Cookie - Session CookiesOrientation UIImagePickerController - objective-cWhy was not redirected to view in ASP.NET MVC 4 - c #What are the gaps in the predicted error rates: MAPE and WMAPE? - machine-learningIIS 7 Application Pool Working Life and Lifetime - asp.netHow to configure my mac ftp client with amazon ec2 instance? - amazon-web-servicesHow to preventfloating on top of other divs in Firefox? - htmlAll Articles