Fix ProDOS bitmap parsing

This commit is contained in:
Jeremy Penner 2021-01-03 10:34:46 -05:00
parent e07992022b
commit ba08d57df5
2 changed files with 1 additions and 1 deletions

BIN
Test.dsk

Binary file not shown.

View file

@ -246,7 +246,7 @@
(fn bit-in-bytes [bytes ibit]
(local ibyte (math.floor (/ ibit 8)))
(local byte (string.byte (bytes:sub (+ ibyte 1) (+ ibyte 1))))
(local mask (bit.lshift 1 (% ibit 8)))
(local mask (bit.rshift 0x80 (% ibit 8)))
(values byte mask ibyte))
(fn Prodos.parse-bitmap [self]