C-128 SYS/POKE/ESCAPE COMMANDS COMMAND FUNCTION/ACTION ----------------------------------------------------------------------------- SYS 65520,R,C,0 SET/READ CURSOR POSITION (PREFACE SYS BY READ/SET) SYS 65408 KERNAL ID BYTE (PEEK(65408)) SYS 65375 TOGGLE BETWEEN 40 & 80 COLUMN SCREEN SYS 65366 SOFTWARE COLD RESET SYS 65363 AUTO-BOOT DISK SYS 65357 GO 64 WITH ARE YOU SURE MESSAGE SYS 65354,A CLOSE ALL FILES OF DEVICE IN 'A' SYS 65341 MACHINE RESET SYS 57416 GO 64 WITHOUT ARE YOU SURE MESSAGE SYS 54784 VDC VERSION (PEEK(54784)AND7) SYS 52689 READS VDC REGISTER SYS 52684 WRITES TO VDC REGISTER (VALUE 'A' IS WRITTEN TO X) SYS 52639 TURNS CURSOR OFF SYS 52591 TURNS CURSOR ON SYS 52040 80 COLUMN SCREEN NORMAL SYS 52031 INVERT 80 COLUMN SCREEN SYS 51966 ENABLE UNDERLINE CURSOR SYS 51954 ENABLE BLOCK CURSOR SYS 51900 SCROLL UP SYS 51871 CLEARS FROM CURSOR TO SCREEN END SYS 51851 CLEARS FROM START OF LINE TO CURSOR SYS 51830 CLEARS FROM CURSOR TO LINE END SYS 51794 CLEARS CURRENT LINE SYS 51748 CLEARS ALL WINDOWS SYS 51739 SET WINDOW SYS51739,TOPROW,TOPCOL,BOTROW,BOTCOL SYS 51602 GENERATES TONE ALWAYS SYS 51598 SOUNDS BELL IF SHIFT/C= NOT DISABLED SYS 51372 ENABLE SHIFT/C= SWITCH SYS 51366 DISABLE SHIFT/C= SWITCH SYS 51346 SWITCH TO UPPER CASE SYS 51328 SWITCH TO LOWER CASE SYS 51317 CURSOR LEFT IN WINDOW SYS 51303 CURSOR UP IN WINDOW SYS 51290 CURSOR DOWN IN WINDOW SYS 51284 CURSOR RIGHT IN WINDOW SYS 51069 CANCELS QUOTE & REVERSE MODE SYS 50341 CLEARS LINE NUMBER IN X REGISTER (SYS50341,,X<0-12>) SYS 49488 BASIC'S HOME CURSOR SYS 49482 HOME WINDOW CURSOR SYS 49474 BASIC'S CLR/HOME CURSOR SYS 49164,CHAR PRINTS A CHARACTER (ASCII) I.E. 49164, SYS 49155,A,B PRINTS A CHARACTER TO SCREEN SYS49155,CHAR,COLOR SYS 49152 KERNALS WARM START SYS 44953 RUNS THE BASIC PROGRAM IN MEMORY SYS 41977 PRINTS "ARE YOU SURE" MESSAGE SYS 32800,123,45,6 COMMODORE CREDITS - MOST INTERESTING OF THEM ALL SYS 19767 ENTRY - BASICS READY MODE SYS 16795 PRINT POWER UP MESSAGE SYS 16387 BASIC'S WARM RESET SYS 16384 BASIC'S COLD RESET POKE 808,50 DISABLE SAVE POKE 808,28 ENABLE SAVE POKE 808,112 DISABLE RUN/STOP POKE 808,110 ENABLE RUN/STOP POKE 808,100 DISABLE RUN/STOP POKE 792,98 DISABLE RESTORE POKE 792,64 ENABLE RESTORE POKE 792,125 DISABLE RESTORE POKE 775,81 ENABLE LIST POKE 775,139 DISABLE LIST POKE 774,38:775,139 LIST LINE NUMBERS ONLY POKE 774,61:775,255 WARM START ON LIST POKE 65341 COLD RESET POKE 4140,0 MOVES SHIFT RUN/STOP TO HELP KEY POKE 2599,1 NORMAL CURSOR 40 COLUMN POKE 2599,0 BLINK CURSOR 40 COLUMN POKE 2593,1 WAITS FOR KEYPRESS POKE 2592,10 ENABLE KEYBOARD POKE 2592,0 DISABLE KEYBOARD POKE 249,128 BEEP OFF POKE 249,0 BEEP NORMAL POKE 248,64 UNLINK SCREEN LINES POKE 248,128 SCROLLING OFF POKE 248,0 SCROLLING NORMAL POKE 24,37 LIST WITHOUT LINE NUMBERS POKE 24,27 LIST WITH LINE NUMBERS POKE 208,0 CLEAR KEYBOARD INPUT BUFFER BEFORE INPUT ESC Z CLEAR ALL TAB STOPS ESC Y SETS DEFAULT TAB STOPS ESC X SWITCHES 40 TO 80 COLUMN AND 80 TO 40 COLUMN ESC W SCROLLS SCREEN DOWN ONE LINE ESC V SCROLLS SCREEN UP ONE LINE ESC U SETS UNDERLINE CURSOR ESC T SETS TOP LEFT CORNER OF WINDOW ESC S SETS BLOCK CURSOR (80 COLUMN) ESC R REVERSES 80 COLUMN SCREEN ESC Q ERASES TO END OF LOGICAL LINE ESC P ERASES TO START OF LOGICAL LINES ESC O CANCELS QUOTE MODE (ESC-ESC ALSO) ESC N SETS NORMAL 80 COLUMN SCREEN ESC M DISABLES SCREEN SCROLLING ESC L ENABLES SCREEN SCROLLING ESC K MOVES CURSOR TO END OF LOGICAL LINE ESC J MOVES CURSOR TO START OF LOGICAL LINE ESC I INSERTS A BLANK SCREEN LINE ESC H DISABLES BELL TONE FOR CHR$(7) ESC G ENABLES BELL TONE FOR CHR$(7) ESC F SETS BLINKING CURSOR MODE ESC E SETS NONBLINKING CURSOR MODE ESC D DELETES AN ENTIRE LOGICAL LINE ESC C CANCELS AUTO INSERT MODE ESC B SETS BOTTOM RIGHT CORNER OF WINDOW ESC A ENTERS AUTO INSET MODE ESC @ CLEARS TO END OF SCREEN