Re: Editing PETSCII on Linux

From: Marko Mäkelä <msmakela_at_gmail.com>
Date: Tue, 25 Mar 2014 12:51:57 +0200
Message-ID: <20140325105157.GD4057@x220>
On Tue, Mar 25, 2014 at 06:15:47AM -0400, Charlie Hitselberger wrote:
>$ hd STIKBOI.S00
>00000000  43 36 34 46 69 6c 65 00  53 54 49 4b 42 4f 49 00 
>|C64File.STIKBOI.|
>00000010  00 00 00 00 00 00 00 00  00 00 0d d5 c0 c0 c0 c9 

The first 26 bytes are a header of the PC64 emulator, to encode PETSCII 
file names in a MS-DOS ASCII compatible way. The real contents starts at 
byte 26 (0x1a), from 0x0d (carriage return) followed by the top line of 
some rounded box (shift-U, a string of horizontal line, and shift-I).

>$ petcat STIKBO.S00
>U{SHIFT-*}{SHIFT-*}{SHIFT-*}I...

OK, it seems that petcat is recognizing and stripping the PC64 header.

>In any event, I was unable to load the file in either text editor 
>(geany, gedit)

Next time, try Emacs. It can handle binary files, and it also has 
built-in hexl-mode.

	Marko

       Message was sent through the cbm-hackers mailing list
Received on 2014-03-25 11:01:03

Archive generated by hypermail 2.2.0.