Import Amiga applications and desktop tools
This commit is contained in:
commit
1c144c9a3c
347 files changed
+423483
No files matched your search
@@ -0,0 +1,14 @@
|
||||
from pathlib import Path
|
||||
b=(Path(__file__).parent/'assets/font.bin').read_bytes()
|
||||
assert len(b)==4096
|
||||
for bank in range(2):
|
||||
o=bank*1024
|
||||
def glyph(n):return b[o+n*8:o+(n+1)*8]
|
||||
assert glyph(0x61)==bytes([240]*8), 'left half block'
|
||||
assert glyph(0x62)==bytes([0]*4+[255]*4), 'lower half block'
|
||||
assert glyph(0x6c)==bytes([0]*4+[15]*4), 'lower right quarter'
|
||||
assert glyph(0x7b)==bytes([0]*4+[240]*4), 'lower left quarter'
|
||||
assert glyph(0x7c)==bytes([15]*4+[0]*4), 'upper right quarter'
|
||||
assert glyph(0x7e)==bytes([240]*4+[0]*4), 'upper left quarter'
|
||||
assert glyph(0x40)==bytes([0,0,0,255,255,0,0,0]), 'horizontal join'
|
||||
print('14 PETSCII alignment checks passed.')
|
||||
Reference in new issue
Block a user