source: trunk/AIR-BOOT/TOOLS/PACKFONT.BAK@ 12

Last change on this file since 12 was 8, checked in by kiewitz, 23 years ago

Added AiR-BOOT Images and support for other languages.
Note: This comment was created after rebuilding the repo. [2011-07]

File size: 1.1 KB
Line 
1$COMPILE EXE
2
3$INCLUDE "CRTC.inc"
4
5Open "CYRILLIC.BIN" For BINARY As #1
6Get$ #1, 1024, CyrillicFont$
7Close #1
8
9$IF 0
10Compressed$ = "": CurPos%=0
11Do
12 NULcount% = 0
13 Do
14 incr CurPos%: incr NULcount%
15 Loop Until Asc(CyrillicFont$,CurPos%)<>0
16 Decr NULcount%
17 CharCount% = 0: StartPos% = CurPos%
18 Do
19 incr CurPos%: incr CharCount%
20 Loop Until Asc(CyrillicFont$,CurPos%)=0
21 Decr CurPos%
22 Shift Left CharCount%, 4
23 Compressed$ = Compressed$+Chr$(CharCount%+NULcount%)+Mid$(CyrillicFont$,StartPos%,CurPos%-StartPos%+1)
24Loop Until CurPos%=>1020
25Open "COMPRESS.BIN" For BINARY As #2
26Put$ #2, Compressed$
27Close #2
28end
29$ENDIF
30
31NewFont$ = @CRTC_Font_ROM_25x80
32Mid$(NewFont$, 2049, 768) = Left$(CyrillicFont$, 768)
33Mid$(NewFont$, 3584, 256) = Right$(CyrillicFont$, 256)
34
35CRTC_LoadFont_25x80 StrPtr32(NewFont$)
36cls
37for a%=0 to 255
38 print chr$(a%);
39 if (a% and 15)=15 Then print
40next a%
41end
42
43Open "KOI8.F16" For BINARY As #1
44Get$ #1, 4096, CyrillicFont$
45close #1
46
47print CyrillicFont$
48CyrillicFont$ = Mid$(CyrillicFont$, 3073, 1024)
49Open "CYRILLIC.BIN" For BINARY As #2
50Put$ #2, CyrillicFont$
51Close #2
Note: See TracBrowser for help on using the repository browser.