| Home CBM ASCII-X BASIC Disk Commands Enter RUN mode Program Format Secret Variables Variable Format Expressions Keywords (divide) (equal) (less) (minus) (more) (multiply) (plus) (power) Abs And Append Asc Atn Auto Backup Bank Begin Bend Bload Boot Box Bsave Bump Catalog Char Chr Circle Close Clr Cmd Collect Collision Color Concat Cont Copy Cos Data Dclear Dclose Dec Def Delete Dim Directory Dispose Dload Do Dopen Draw Ds Ds string Dsave Dverify El Else End Envelope Er Err Exit Exp Fast Fetch Filter Fn For Fre Get Get num Getkey Go Gosub Goto Graphic Gshape Header Help Hex If Input Input num Instr Int Joy Key Left Len Let List Load Locate Log Loop Mid Monitor Movspr New Next Not Off On Open Or Paint Peek Pen Pi Play Pointer Poke Pos Pot Print num Pudef Quit Rclr Rdot Read Record Rem Rename Renumber Restore Resume Return Rgr Right Rlum Rnd Rreg Rspcolor Rsppos Rsprite Run Rwindow Save Scale Scnclr Scratch Sgn Sin Sleep Slow Sound Spc Sprcolor Sprdef Sprite Sprsav Sqr Sshape St Stash Step Stop Str Swap Sys Tab Tan Tempo Then Ti Ti string To Trap Troff Tron Until Using Usr Val Verify Vol Wait While Width Window Xor Syntax Tokens C128 D64plus Disk Escape Codes Hardware PCxface PETSCII Pet2asc Futurama IBM PC-AT Contact Games Glossary Hall of fame Hall of shame Miscellaneous Privacy policy Programming Twisty puzzles |
SLOW
Machine state managment. Directs the CPU to operate at "standard" speed.
SLOW sets the computer to operate at its default ("compatible") speed. On the C128, this is about 1MHz and programs will run at about the same speed as on the C64 (actually a bit slower). In this mode, the VIC-II (40-Column display) is fully functional. Note that any SPRITEs that are enabled will further slow down the CPU a bit (generally two CPU cycles for every raster of each active sprite). The system "Jiffy Clock" updates at the normal rate of 60 units ("jiffies") per second (see TI/TI$), regardless of FAST or SLOW mode. The SLEEP statement uses the Jiffy Clock so it is not affected, but timing delays using FOR/NEXT will execute twice as slowly (as compared to FAST mode). Attempting to supply a parameter to SLOW will generate SYNTAX ERROR. Technical Note (really outside of BASIC): The KERNAL will set the CPU to SLOW mode when it performs external I/O (any device except keyboard or screen), and then restore the previous speed upon completion. On the C64, some programs were written that would blank the VIC-II screen to increase speed. Later the screen would be restored to show results. That method improves speed by about 10%, but FAST improves speed by about 100% -- a big difference. SLOW is the only possibility on a real C64, but using POKE 53296,0 will restore 1MHz speed on a C128 that is in 64-mode (this only makes sense if it was previously POKE'd into FAST mode). Example:
© H2Obsession, 2014 |