blob: adeb29d50572f309079d5e7a4d1d55cda316b559 [file] [log] [blame]
Martin Roth9b1b3352016-02-24 12:27:06 -08001#!/bin/bash
2
3if [ -f memtest.bin ]
4then
5CSIZE="$(awk 'NR==16' mt86+_loader.asm | awk '{print $2}')";
6NSIZE="$(ls -l memtest.bin | awk '{print $5}')";
7sed "s/$CSIZE/$NSIZE/" mt86+_loader.asm > mt86+_loader.asm.new;
8mv mt86+_loader.asm.new mt86+_loader.asm;
9nasm mt86+_loader.asm;
10fi