1
0
mirror of https://github.com/DoctorWkt/pdp7-unix.git synced 2026-05-02 14:30:00 +00:00

So, SimH stores things big-endian. Fixed mkfs7.

This commit is contained in:
Warren Toomey
2016-03-11 07:04:53 +10:00
parent 8d487fee5c
commit becb1f4996

View File

@@ -536,10 +536,10 @@ sub dump_image {
foreach my $offset ( 0 .. WORDSPERBLK-1 ) {
my $word = $Block[$blocknum][$offset] || 0;
my $packedword = pack( "CCCC",
( $word >> 24 ) & 0xff,
( $word >> 16 ) & 0xff,
$word & 0xff,
( $word >> 8 ) & 0xff,
$word & 0xff );
( $word >> 16 ) & 0xff,
( $word >> 24 ) & 0xff);
print( $OUT $packedword );
}
}