Begin main content

Converting Apple 1 hex dumps for the pom1 emulator

Traditionally, Apple 1 (or Apple ][ for that matter) hex dumps look something like:

0300: 25 14 23 84 23 14 16 1B
: FF 9F 1E 1D 1C 1B 1A 19
...

This is suitable for entering straight into the Woz Monitor as a line starting with a colon indicates that the following bytes should be palced in the ram immediately following on from the previous write (or read).

I was having trouble with the paste function in the pom1 emulator, probably due to speed sync issues. pom1 lets you load rom dumps, but it expects the memory address on each line, not just the first.

As always, perl to the rescue :) With the following handy perl one liner you can convert a rom dump file in the usual format:

perl -pe '$base = /^([0-9A-F]{4}):/ ? $1 : uc sprintf "%04x",hex($base)+8; s/^[^:]*:/$base:/'

03:39 AM, 24 Nov 2006 by Mark Aufflick Permalink | Short Link | Comments (0)

XML

Blog Categories

software (29)
..cocoa (14)
  ..heads up 'tunes (5)
..ruby (4)
..lisp (1)
..perl (3)
..openacs (1)
mac (19)
embedded (2)
..microprocessor (2)
  ..avr (1)
electronics (3)
design (1)
photography (24)
..black and white (6)
..A day in Sydney (18)
..The Daily Shoot (5)
food (2)

Notifications

Icon of Envelope Request notifications

Syndication Feed

XML

Recent Comments

  1. John Amoratis: Thanks for making a wonderful program
  2. Unregistered Visitor: To replace current categories or remove them...
  3. Unregistered Visitor: Base 256
  4. Unregistered Visitor: ...
  5. Unregistered Visitor: www.pipl.com
  6. Unregistered Visitor: This reminds me of the infinite monkeys
  7. Unregistered Visitor: Feedback
  8. Unregistered Visitor: Diito... Snow Leopard no worky
  9. Unregistered Visitor: WFM
  10. Unregistered Visitor: Pie