10
20
30
40 :
50
60
70
80
90
100
110
120 :
130
140
150
160
170
180
190
200
210 :
220 out%=OPENOUT("6440.bin")
230 FOR addr%=0 TO 255
240 col%=addr% AND (64/8)-1
250 row%=addr% DIV (64/8)
260 cell%=row%*(40/8)+col%
270
280
290
300
310
320
330 :
340 byte%=&7F
350 IF col%=6:byte%=byte% AND NOT &40 :
360 IF row%=27:byte%=byte% AND NOT &20 :
370 IF row%=30:byte%=byte% AND NOT &10 :
380 IF col%<5 AND row%<25:byte%=cell% OR &80 :
390 IF col%=0:PRINT "row:";FNd0(row%,2);" ";FNh0(addr%,2);": ";
400 PRINT FNh0(byte%,2);" ";
410 IF col%=(64/8)-1:PRINT
420 BPUT#out%,byte%
430 NEXT
440 CLOSE#out%
450 END
460 :
470 DEFFNh0(A%,N%)=RIGHT$("0000000"+STR$~A%,N%)
480 DEFFNd0(A%,N%)=RIGHT$("0000000"+STR$A%,N%)