Line: 1 to 1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Raspberry Pi Interface to Cosmac Elf | |||||||||||
Line: 6 to 6 | |||||||||||
elf2bin Utility | |||||||||||
Added: | |||||||||||
> > | |||||||||||
Copies the Elf (Membership Card) memory to a binary file on the Raspberry Pi. The Raspberry Pi GPIO is used as interface to the Cosmac Elf SBC (e.g. Elf Membership Card parallel port). | |||||||||||
Changed: | |||||||||||
< < | cc -o elf2bin -lwiringPi elf2bin.c ./elf2bin -s 0 -e ff | hexdump -C 00000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00000100 | ||||||||||
> > | pi@cosmac:~/elf/RaspiElf/chase $ bin2elf -e 7fff </dev/zero 0x8000 bytes written pi@cosmac:~/elf/RaspiElf/chase $ bin2elf -w -r chase.bin 0x002d bytes written pi@cosmac:~/elf/RaspiElf/chase $ elf load 01 1 0 0 1 1 0 0c pi@cosmac:~/elf/RaspiElf/chase $ elf2bin -e 3f | hexdump -C 0x0040 bytes read 00000000 c0 00 03 e3 90 b3 f8 30 a3 f8 01 53 64 6c 23 fa |.......0...Sdl#.| 00000010 fe 3a 1a f0 f6 c7 f8 80 30 1f f0 fe c7 f8 01 53 |.:......0......S| 00000020 f8 14 b2 22 92 3a 23 c5 7a 38 7b 30 0c 00 00 00 |...".:#.z8{0....| 00000030 04 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000040 pi@cosmac:~/elf/RaspiElf/chase $ elf 02 1 1 0 1 1 1 ff pi@cosmac:~/elf/RaspiElf/chase $ elf -n read 02 1 1 0 1 1 0 ff pi@cosmac:~/elf/RaspiElf/chase $ elf run pi@cosmac:~/elf/RaspiElf/chase $ elf put 0 40 1 1 0 0 0 0 00 pi@cosmac:~/elf/RaspiElf/chase $ elf put 80 10 1 1 0 0 0 0 80 pi@cosmac:~/elf/RaspiElf/chase $ elf -v LED:40 Q:1 Rx:1 IN:0 WAIT:0 CLR:0 READ:0 SWITCH:80 pi@cosmac:~/elf/RaspiElf/chase $ elf -v LED:02 Q:0 Rx:1 IN:0 WAIT:0 CLR:0 READ:0 SWITCH:80 | ||||||||||
bin2elf Utility | |||||||||||
Line: 91 to 118 | |||||||||||
| |||||||||||
Added: | |||||||||||
> > | Other Toolshex2binIntel Hex or Motorola Hex file converter. http://hex2bin.sourceforge.net/ > tar xvjf Hex2bin-2.5.tar.bz2 > make > sudo make install | ||||||||||
-- Peter Schmid - 2017-11-26 |