What are those number?
Dan Taylor
Posts: 207
I was just browsing over propeller code. Trying to understand how it works and I understand a lot. Except in the DATA section there is usually something like this:
pixdef················· word··················· 'arrow pointer
························ ·byte··· 1,5,0,4
························ ·word··· %%11110000
························· word··· %%11100000
························· word··· %%11110000
························· word··· %%10111000
························ ·word··· %%00011000
I understand all the 1 and 0 and stuff, but what about the byte line? I don't understand what those numbers are doing. Could someone help me out?
Thanks!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor
pixdef················· word··················· 'arrow pointer
························ ·byte··· 1,5,0,4
························ ·word··· %%11110000
························· word··· %%11100000
························· word··· %%11110000
························· word··· %%10111000
························ ·word··· %%00011000
I understand all the 1 and 0 and stuff, but what about the byte line? I don't understand what those numbers are doing. Could someone help me out?
Thanks!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor
Comments
%means following number is binary
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Need to make your prop design easier or secure? Get a PropMod has crystal, eeprom, and programing header in a 40 pin dip 0.7" pitch module with uSD reader, and RTC options.
PS: It's a %% and not a %, so it's not bits, each digit represents 2 bits given as a value between 0 and 3.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Need to make your prop design easier or secure? Get a PropMod has crystal, eeprom, and programing header in a 40 pin dip 0.7" pitch module with uSD reader, and RTC options.
E.g.: FirstByte:=BYTE[noparse][[/noparse]@pixdef+0]
LastByte:=BYTE[noparse][[/noparse]@pixdef+3]
You can use two array operators.
FirstByte:=byte[noparse][[/noparse]@pixdef][noparse][[/noparse]0]
LastByte:=byte[noparse][[/noparse]@pixdef]
Maybe it's worth to test if it makes some difference in timing or not?!