Purpose: | Print a string, in binary format (e.g., B10101011) with the contents of a BYTE. | |||
Assumes: | All eight (8) bits are printed; none suppressed. | |||
Passed: | R24 | BYTE | bValue | the BYTE value to print; output: "B00000000" to "B11111111" |
Returns: | R24 | BYTE | bValue | the same bValue that was passed in R24, unchanged |
Alters: | Only the FLAGs (SREG) and the COM1 Transmit buffer |
Example: |
|
||||
Test it: |
| ||||
Notes: | As is the case with other Print commands, this command can block. | ||||
Dropin: (setup code) |
; Setup for the PrintBINARY() call: ; Passed: R24 BYTE bValue to print in binary format ; Returns: R24 BYTE bValue, unchanged ; Alters: the FLAGs and the COM1 Transmit Buffer | ||||
Also see: | The System Functions PrintCHAR, Print0xPrefix, the PrintBYTE family, and the PrintWORD family. |