Comments (2)
Yes, with built-in functions lsb
and msb
:
byte look_lo = lsb(mydata)
byte look_hi = msb(mydata)
from prog8.
That is the correct answer!
Note also that there is the reverse builtin-function mkword
to create a new word value from separate msb and lsb bytes:
uword w = mkword(msb, lsb)
(closing this issue now as I think the original question was answered)
from prog8.
Related Issues (20)
- Newline is significant when it shouldn't be HOT 1
- Don't do that! [about the idea to remove drive num from diskio routines] HOT 7
- Array of Structs HOT 4
- filenames with non-ASCII characters don't get loaded by the compiler on Windows while in UTF-8 mode HOT 1
- @(variable) to work for uword as well as ubyte HOT 4
- Prog8 generates ASM that will not build HOT 3
- parse error: no viable alternative at input 'not in' Where as, this does not: HOT 3
- How to convert uword to str? HOT 3
- Docs: List all available @varflags/tags HOT 4
- Problem with string.find(...) HOT 2
- Support for new encodings HOT 8
- known problems in version 10.3
- compiler crash when using call builtin HOT 6
- string.find is not working HOT 5
- Incorrect 6502 asm generated with indexing a uword pointer using array syntax HOT 1
- Compilation broken with new Kotlin versions HOT 1
- windows build fails on line endings HOT 1
- floats.atan2() wrong results
- vera CTRL not properly reset in line drawing code
- for 'raw' outputs, syslib is sometimes not imported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prog8.