(byte_data: bytes)
| 159 | |
| 160 | |
| 161 | def bytes_to_asm_db(byte_data: bytes) -> bytes: |
| 162 | # Convert each byte to a string in hexadecimal format |
| 163 | # prefixed with '0' and suffixed with 'h' |
| 164 | hex_values = [f"0{byte:02x}H" for byte in byte_data] |
| 165 | formatted_string = ', '.join(hex_values) |
| 166 | return "\tDB " + formatted_string |
no outgoing calls
no test coverage detected