Re: Getting a file into CP/M



On Mon, 04 Jun 2007 02:14:28 -0000, Grant Stockly <grant@xxxxxxxxxxx>
wrote:

On Jun 3, 2:12 pm, John Elliott <j...@xxxxxxxxxxxxxxxxxx> wrote:
Grant Stockly <g...@xxxxxxxxxxx> wrote:

: Would it be possible with one of these tools to input a binary file?
: Do I have to write something special? I could tell it, input 256
: bytes and then exit. PIP seems pretty limited compared later versions.

I'd suggest converting your small binary file to hex format (you could use
UNLOAD.COM in a CP/M emulator, or find a native equivalent). Then transfer
it to the CP/M box, either over a serial port or by typing the lines by hand
into ED. Finally use DDT to reconstitute it:

A>DDT file.HEX
DDT VERS 2.2
NEXT PC
nnnn 0000
-^C

A>SAVE ss file.BIN

where ss is the number of 256-byte pages to save.

Alternatively you can key the hex bytes directly into DDT:

A>DDT
DDT VERS 2.2
-S100
0100 01 xx
0101 BC xx
...
014C 07 .
-^C

A>SAVE ss file.BIN

Thanks. I just received a modified Tarbell disk drive card that is
formatting and using 3.5" disks as a 40 track 18 sector 5.25"
minifloppy. It really stinks that I only have 69k per disk freshly
formatted, but at least I have disks and an operating system working
on cheap disks and cheap drives. : )

I have to ask. Why are you only using 40 tracks of a 80 track two
sided drive. Even with the SD formatting your not using nearly 200k.

Having run a SD system at that same very size I can say that even
trivial program development or what have you is a serious pain for
lack of space. I only used it long enough to develop a new bios
for a bigger/better controller to do DD.

Allison

Are there any utilities available designed to transfer program files
between a CP/M machine and a DOS/Windows based computer over a serial
port? Something to make the process a little less painful? I think I
would have to use the console for the transfer. I'm not sure if my CP/
M has two serial ports configured.

There is a patch area in pip that you can add a user driver to.
Create and add a serial input routine and then you can pip
small programs to the system.


Thanks,
Grant

.



Relevant Pages

  • Re: Getting a file into CP/M
    ... I'd suggest converting your small binary file to hex format (you could use ... either over a serial port or by typing the lines by hand ... DDT VERS 2.2 ... I just received a modified Tarbell disk drive card that is ...
    (comp.os.cpm)
  • SUMMARY: Progress ... old message was "I am unable to boot a Sun V280 server ..."
    ... to install the correct version of that file (since the installation disk ... the failed attempt booting from a backup disk was because it did ... Based on a few received recommendations, I removed the RSC card and "moved" ... For a while, I was not getting _anything_ from the serial port, so I suspected ...
    (SunManagers)
  • Re: String Variable containing "R" has zero length??? mscomm1.input
    ... Dick Grier wrote: ... This is a quickbasic 4.5 program that receives serial port ... I compiled the program on using the first disk and tried to run ... I'm using a different input string containing "Device". ...
    (microsoft.public.vb.controls)
  • Re: Hardware musings
    ... computer's disk drives), why couldn't a "magic" box be built that would ... ADT Pro uses the same serial port ... bunch of new code (the bootstrap init process of the a2 game server ...
    (comp.sys.apple2)
  • Re: ppp/diald networking dying under heavy IDE (or CPU?) load
    ... >>load in copying disk to disk) would cause network connections over ... > serial port controller are hooked up on the same IRQ? ... the serial port doesn't seem to ...
    (Debian-User)