Cobal. I seem to get an error message Segmentation fault (core dumped)I am not sure if I am doing something wrong.
or I am missing something somewhere.
It is what I am after though...
DECLARE LIBRARY ".\Extensions\charset"
SUB Charset_8x8 (BYVAL o AS _OFFSET)
SUB Charset_8x16 (BYVAL o AS _OFFSET)
END DECLARE
DIM SHARED c16(7, 15, 255) AS _UNSIGNED _BYTE, charload AS _UNSIGNED _BYTE
CONST TRUE = -1, FALSE = NOT TRUE
loadreapingfont
Charset_8x16 (c16)
FOR i = 1 TO 255
PRINT CHR$(i);
NEXT i
END
SUB loadreapingfont
OPEN ".\FONT\char256.bin" FOR BINARY AS #1
FOR c% = 0 TO 255
FOR y% = 0 TO 15
GET #1, , charload
FOR x% = 0 TO 7 'STEP -1
IF readbit(x%, charload) THEN c16(7 - x%, y%, c%) = 1 'any non-0 value should work
NEXT
NEXT
NEXT
CLOSE
END SUB
FUNCTION readbit (bit%, value%)
IF value% AND 2 ^ bit% THEN readbit = TRUE ELSE readbit = FALSE
END FUNCTION
there is an 8x16 font set here to downloadwas only using to test, but goes into error