def to_listing
return contents if aux_code==0xFF
s=""
p=0
if contents[p] == 0xff then
p+=1
file_size = contents[p]<<8
p+=1
file_size += contents[p]
p+=1
end
value = contents[p]<<8
p+=1
value += contents[p]
p+=1
while (p<contents.length-2) && (value != 0)
line_number = contents[p]<<8
p+=1
line_number += contents[p]
p+=1
s+= "#{line_number} "
character = contents[p]
p+=1
while (p<contents.length-1) && (character != 0)
if character == 0xff then
character = contents[p]
p+=1
s+=FUNCTION_TOKENS[character]
elsif character >= 0x80
s+=COMMAND_TOKENS[character]
elsif character == 0x3a && (contents[p] == 0x83 || contents[p] == 0x84 )
else
s+=(character % 0x80).chr
end
character = contents[p]
p+=1
end
s+="\n"
value = contents[p]<<8
p+=1
value += contents[p] unless contents[p].nil?
p+=1
end
s
end