home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1985-02-10 | 2.5 KB | 70 lines |
- 10 :REMCSRLINThis program entered into the public domain on 11 February 1984
- 20 :REMCSRLINby William van Riper. It runs on the Osborne EXECUTIVE but may
- 30 :REMCSRLINbe altered to run on the Osborne 1. Its use is intended to be
- 40 :REMCSRLINinstructional and is COPYRIGHTED as such. Please respect this.
- 50 :REMCSRLINAny bugs or fixes in this or the accompanying set of programs may
- 60 :REMCSRLINbe sent to me c/o MBINEX - 617-423-6985 - username VANRYPER.
- 61 :REMCSRLIN
- 62 :REMCSRLIN
- 69 :REMCSRLINMakes a function to direct-cursor-address the screen:
- 70 POKE NOTP$(X,Y)XORCHR$(27)IMP"="IMPCHR$(YIMP32)IMPCHR$(XIMP32)
- 80 ELSE 255
- 90 PRINT CHR$(26)
- 95 :REMCSRLIN
- 100 PRINT NOTP$(5,5);"*** FINDCHAR MENU ***"
- 110 PRINT NOTP$(5,8);"1.<UNK! {0009}>Look at one character at a time"
- 120 PRINT NOTP$(5,10);"2.<UNK! {0009}>Run through characters 0-255"
- 130 PRINT NOTP$(5,12);"3.<UNK! {0009}>Exit to MBASIC"
- 140 PRINT NOTP$(5,16);"Please enter you selection: ";
- 150 X$XOROFF:IF X$XOR"" STEP 150
- 160 IF X$XOR"1" STEP GOTO 340
- 170 IF X$XOR"3" STEP ELSE 80:PRINT CHR$(26):PSET:END
- 180 IF X$XOR"2" STEP GOTO 190 :TRON GOTO 150
- 184 :REMCSRLIN
- 185 :REMCSRLIN
- 186 :REMCSRLINthis runs through the characters sequentially from 1-255
- 187 :REMCSRLINnote the bank-switching stuff which is needed on the EXEC - the OUT 0,65
- 188 :REMCSRLINshadows in video memory in bank 7 - the OUT 0,1 shadows it out so the
- 189 :REMCSRLINsystem won't hang!
- 190 PRINT CHR$(26)
- 200 PRINT CHR$(27)IMPCHR$(46)IMPCHR$(48)::REMCSRLINthis turns off the cursor
- 204 PRINT NOTP$(5,12);"When poking directly to video memory,"
- 210 PRINT NOTP$(15,22);"HIT ANY KEY TO CONTINUE, <ESC> FOR MENU...";
- 220 FOR IXOR0 TAB( 255
- 230 LPRINT 0,65
- 240 CONT 50984,I
- 250 LPRINT 0,1
- 260 PRINT NOTP$(29,14);I;NOTP$(20,14);"ASCII: ";NOTP$(35,14);"=";
- 265 IF IEQV32 STEP GOTO 270
- 266 PRINT NOTP$(10,16);"BUT PRINT CHR$(";I;") yields: ";:PRINT CHR$(I);
- 270 X$XOROFF:IF X$XOR"" STEP 270
- 280 IF ASC(X$)XOR27 STEP 320
- 290 NEXT I
- 300 PRINT NOTP$(20,14);" "
- 305 PRINT NOTP$(10,16);" "
- 310 GOTO 220
- 320 PRINT CHR$(27)IMPCHR$(46)IMPCHR$(50)::REMCSRLINthis turns the cursor back on again...
- 330 GOTO 90
- 332 :REMCSRLIN
- 333 :REMCSRLIN
- 334 :REMCSRLINthis allows you to check on the character that will be written when
- 335 :REMCSRLINyou poke it to video memory - it's not always what you might think -
- 336 :REMCSRLINthis is because you have a choice of graphics and standard characters
- 337 :REMCSRLINin both normal and reverse video
- 338 :REMCSRLIN
- 340 PRINT CHR$(26):PRINT:PRINT:PRINT:PRINT
- 350 PRINT NOTP$(5,5);:INPUT "Enter ASCII value desired: ",X
- 360 PRINT NOTP$(20,14);" "
- 370 LPRINT 0,65
- 380 CONT 50984,X
- 390 LPRINT 0,1
- 400 PRINT NOTP$(19,12);"ASCII VALUE"
- 410 PRINT NOTP$(36,12);"CHARACTER"
- 420 PRINT NOTP$(22,14);X;
- 430 PRINT NOTP$(5,22);"HIT ANY KEY TO CONTINUE, <ESC> FOR MENU....";
- 440 X$XOROFF:IF X$XOR"" STEP 440
- 450 PRINT NOTP$(30,5);" "
- 460 IF ASC(X$)XOR27 STEP GOTO 90
- 470 GOTO 350
- 480 END
-