C-128 S Y S L O C A T I O N S ################################### Compiled by Bob k7 LOCATION FUNCTION ########## ########## 16384 BASIC's Cold Reset 16387 BASIC's Warm Reset 16795 Print Power Up Message 19767 Entry-BASIC's Ready Mode 42977 Prints-"Are You Sure?" Message - (ASCII of character entered will - be returned in the Accumulator) 44953 RUNs The BASIC Program in Memory 49152 KERNAL's Warm Start 49155 Prints a character(screen code) - SYS49155,char,color 49164 Prints a character(ASCII) - SYS49164,char 49474 BASIC's Clear/Home CRSR 49488 BASIC's Home CRSR 50341 Clears Line Number in X Register - Syntax SYS50341,,x (0-24) 51069 Cancels quote & reverse mode 51284 CRSR right in window 51290 CRSR down in window 51303 CRSR up in window 51317 CRSR left in window 51328 Switch to lower case 51346 Switch to upper case 51366 Disables SHIFT/C= switch 51372 Enables SHIFT/C= switch 51598 Sounds bell if not disabled 51602 Generates tone always 51739 Set Window (SYS51739,tr,tc,br,bc) - tr/tc=top left corner (row-column) - br/bc=bottom right corner (row-column) 51748 Clears All Windows 51794 Clears current line 51830 Clears from CRSR to line end 51851 Clears from start of line to CRSR 51871 Clear from CRSR to screen end 51900 Scroll up 51954 Enable block CRSR 51966 Enable underline CRSR 52031 Invert 80 column screen 52040 80 column screen normal 52591 Turns CRSR on 52639 Turns CRSR off 52684 Writes to VDC Register (Value in 'A' - is written to register in 'X') 52689 Reads VDC Register (Contents of - register in 'X' is returned in 'A') 54784 VDC Version (PEEK(54784)AND7) 57416 Go 64 (WITHOUT Are You Sure? Message) 65341 Machine Reset 65354 Closes All Files of Device in 'A' - (Syntax SYS65354,a) 65357 Go 64 (WITH Are You Sure? Message) 65363 Boot Call 65375 Swap Active Screens 65408 KERNAL ID Byte (PEEK(65408)) 65520 Set/read CRSR position - Set SYS65520,,R,C,0 - Read SYS65520,,,,1:RREG,R,C C-128 P O K E L O C A T I O N S ##################################### LOCATION FUNCTION ########## ########## 24,37 List without line no. 27=normal 208,0 Clear keyboard buffer 248,64 Unlink screen lines 0=normal 248,128 Scrolling off 0=normal 249,128 Beep off o=normal 774,38:775,139 List line numbers only 18:18=normal 774,61:775,255 Warm start on list 81:81=normal 775,139 Disable list 81=normal 792,98 Disable Restore 64=normal 808,112 Disable RUN/STOP 110=normal 818,50 Disable save 28=normal 2592,0 Disable keyboard 10=normal 2593,1 Waits for keypress 2599,0 Blink CRSR 40 columns 1=normal 4140,0 Moves SHIFT RUN/STOP to HELP key 241,PEEK(241)OR16 Blinks 80 column text 241,PEEK(241)AND239 Stops 80 column text blink E S C A P E C O D E S ######################### ESC + LOCATION ACTION ##### ########## ######## @ 51871/$CA9F Clears to end of screen A 51949/$CAED Enters autoinsert mode B 51734/$CA16 Sets bottom right corner of window C 51946/$CAEA Cancells autoinsert mode D 51794/$CA52 Delets an entire logical line E 51979/$CB0B Sets nonblinking CRSR mode F 52001/$CB21 Sets blinking CRSR mode G 52023/$CB37 Enables bell tone for CHR$(7) H 52026/$CB3A Disables bell tone for CHR$(7) I 51773/$CA3D Inserts a blank screen line J 52145/$CBB1 Moves CRSR to start of logical line K 52050/$CB52 Moves CRSR to end of logical line L 51938/$CAE2 Enables screen scrolling M 51941/$CAE5 Disables screen scrolling N 52040/$CB48 Sets normal 80-column screen O 51069/$C77D Cancels quote mode (ESC-ESC also) P 51851/$CA8B Erases to start of logical line Q 51830/$CA76 Erases to end of logical lines R 52031/$CB3F Reverses 80-column screen S 51954/$CAF2 Sets block CRSR (80-column) T 51732/$CA14 Sets top left corner of window U 51966/$CAFE Sets underline CRSR (80-column) V 51900/$CABC Scrolls screen up one line W 51914/$CACA Scrolls screen down one line X 52524/$CD2C Switches active displays Y 51587/$C983 Sets default tab stops Z 51584/$C980 Clears all tab stops R.W. Bob k7 Kober