First post, by Peter Swinkels
According to HelpPC interrupt vector 1Fh points at the extended ASCII characters' fonts. The code below is meant to invert the character bitmaps:
DEFINT A-ZCONST CHARACTERBITMAPS = &H1FDECLARE FUNCTION GetOffset& (InterruptNr)DECLARE FUNCTION GetSegment& (InterruptNr)DECLARE SUB DisplayExtendedCharacters ()DECLARE SUB InvertExtendedCharacters ()SCREEN 1CLSInvertExtendedCharactersDisplayExtendedCharactersSUB DisplayExtendedCharactersFOR Character = 128 TO 255PRINT CHR$(Character);NEXT CharacterEND SUBFUNCTION GetOffset& (InterruptNr)DEF SEG = &H0VectorOffset = InterruptNr * &H4Offset& = PEEK(VectorOffset + &H1) * &H100&GetOffset& = Offset& OR PEEK(VectorOffset)END FUNCTIONFUNCTION GetSegment& (InterruptNr)DEF SEG = &H0VectorOffset = InterruptNr * &H4Segment& = PEEK(VectorOffset + &H3) * &H100&GetSegment& = Segment& OR PEEK(VectorOffset + &H2)END FUNCTIONSUB InvertExtendedCharactersSegment& = GetSegment&(CHARACTERBITMAPS)Offset& = GetOffset&(CHARACTERBITMAPS)DEF SEG = Segment&FOR Index& = 0 TO 16384POKE Offset& + Index&, PEEK(Offset& + Index&) XOR &HFFNEXT Index&END SUB
It doesn't appear to be doing anything except possibly crashing... Anyone know where I went wrong?
My GitHub:
https://github.com/peterswinkels
