1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-01 13:41:34 +00:00

Align font to 256 bytes

This commit is contained in:
Karri Kaksonen 2022-04-05 10:42:58 +03:00
parent 6b16b99192
commit 97fd42063b
2 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ fname= fname + '.s'
with open(fname, 'w') as f:
f.write(" .export _font160\n")
f.write(' .rodata\n')
f.write(' .align 256\n')
f.write("_font160:\n")
for i in range(0, int(len(data)/32)):
printline(f, data[i * 32:i * 32 + 32])

View File

@ -1,5 +1,6 @@
.export _font160
.rodata
.align 256
_font160:
.byte $0, $0, $41, $41, $0, $0, $14, $0
.byte $0, $0, $0, $0, $1, $40, $0, $0