about summary refs log tree commit diff stats
path: root/linux/ex3.subx
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-03-21 22:25:26 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-03-21 22:30:44 -0700
commit0c3f126377c2f14fe3b063dca686d6e1608f80d4 (patch)
tree535b14518d703d1dd35e90e5e94c053cfc83fbc3 /linux/ex3.subx
parentfba2146593b077829845efcfe4b343ce809f5d88 (diff)
downloadmu-0c3f126377c2f14fe3b063dca686d6e1608f80d4.tar.gz
snapshot: reading secondary drive also works
  dd if=/dev/zero of=data.img count=20160
  echo '(+ 1 1)' |dd of=data.img conv=notrunc
  ./translate ex2.mu  &&  qemu-system-i386 -hda disk.img -hdb data.img

Compare output with `xxd data.img |head`.

This works because primary and secondary drives on the primary bus share
the same ports. All we have to do is select the right drive by flipping
a bit.
Diffstat (limited to 'linux/ex3.subx')
0 files changed, 0 insertions, 0 deletions