I am working on GwBasic and want to know how 'CVI("aa")' returns '24929' is that converts each char to ASCII but code of "aa" is 9797.
1
There are 1 best solutions below
Related Questions in GW-BASIC
- will gwbasic run on 32 bit windows 7
- GW BASIC chatbot with DATABASE.TXT file
- Is the "FOR-NEXT" loop wrong in this GW-BASIC program?
- Im trying to make tetris in Basic , but I have encoutered a problem which i cant seem to solve
- How to write a program in gwbasic for adding the natural numbers for 1 to 100?
- Commands in GWBASIC
- How to read a protected .bas file which has "line buffer overflow"?
- illegal file number in *line number*
- How to test if a directory exist in qbasic?
- why is the function CHDIR not working on the network ? Qbasic BasicA
- Was there ever a first parameter for the CLEAR statement?
- Modify basic files used with gwbasic
- Explicit line numbers and execution order
- How can I exit Microsoft GW-BASIC, IBM BASICA, or other similar old dialects of BASIC?
- Print without newline
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
CVIconverts between a GW-BASIC integer and its internal representation in bytes. That internal representation is a 16-bit little-endian signed integer, so that the value you find is the same asASC("a") + 256*ASC("a"), which is97 + 256*97, which is24929.MKI$is the opposite operation ofCVI, so thatMKI$(24929)returns the string"aa".The 'byte reversal' is a consequence of the little endianness of GW-BASIC's internal representation of integers: the leftmost byte of the representation is the least significant byte, whereas in hexadecimal notation you would write the most significant byte on the left.