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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user