cm0002@lemmy.world to Programmer Humor@programming.dev · 2 months agoTell me the truth ...piefed.jeena.netimagemessage-square97linkfedilinkarrow-up122arrow-down11
arrow-up121arrow-down1imageTell me the truth ...piefed.jeena.netcm0002@lemmy.world to Programmer Humor@programming.dev · 2 months agomessage-square97linkfedilink
minus-squareSubverb@lemmy.worldlinkfedilinkarrow-up0·edit-22 months agoThe 8-bit Intel 8051 family provides a dedicated bit-addressable memory space (addresses 20h-2Fh in internal RAM), giving 128 directly addressable bits. Used them for years. I’d imagine many microcontrollers have bit-width variables. bit myFlag = 0; Or even return from a function: bit isValidInput(unsigned char input) { // Returns true (1) if input is valid, false (0) otherwise return (input >= '0' && input <= '9'); }
minus-squarefrezik@midwest.sociallinkfedilinkarrow-up0·2 months agoNothing like that in ARM. Even microcontrollers have enough RAM that nobody cares, I guess.
minus-squareTreczoks@lemmy.worldlinkfedilinkarrow-up0·2 months agoTell this to the LPC1114 I’m working with. Did you ever run a multilingual GUI from 2kbytes RAM on a 256x32 pixel display?
minus-squareSubverb@lemmy.worldlinkfedilinkarrow-up0·1 month agoI did a multilingual display with an 8031 in 1995 on a 2x16 text LCD. I had 128 bytes of RAM and an EPROM. Did English, Spanish and German. You kids have it so easy nowadays. 🤣
minus-squareTreczoks@lemmy.worldlinkfedilinkarrow-up1·1 month agoLast counting was 114 languages on the LPC1114. And yes, with normal LCDs I’ve done similar things on an 8051 before.
The 8-bit Intel 8051 family provides a dedicated bit-addressable memory space (addresses 20h-2Fh in internal RAM), giving 128 directly addressable bits. Used them for years. I’d imagine many microcontrollers have bit-width variables.
bit myFlag = 0;
Or even return from a function:
bit isValidInput(unsigned char input) { // Returns true (1) if input is valid, false (0) otherwise return (input >= '0' && input <= '9'); }
Nothing like that in ARM. Even microcontrollers have enough RAM that nobody cares, I guess.
Tell this to the LPC1114 I’m working with. Did you ever run a multilingual GUI from 2kbytes RAM on a 256x32 pixel display?
I did a multilingual display with an 8031 in 1995 on a 2x16 text LCD. I had 128 bytes of RAM and an EPROM. Did English, Spanish and German.
You kids have it so easy nowadays. 🤣
Last counting was 114 languages on the LPC1114. And yes, with normal LCDs I’ve done similar things on an 8051 before.