MCPcopy Create free account
hub / github.com/dobin/SuperMega / bytes_to_asm_db

Function bytes_to_asm_db

phases/asmtextparser.py:161–166  ·  view source on GitHub ↗
(byte_data: bytes)

Source from the content-addressed store, hash-verified

159
160
161def 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

Callers 1

parse_asm_text_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected