home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.cbm      Discussion about Commodore micros      53,866 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 52,024 of 53,866   
   Somebody to All   
   Re: Poking in a command then running it    
   08 Jul 17 08:50:43   
   
   From: i@someaddress.com   
      
   Il 08/07/2017 05:02, Robert Wolfe ha scritto:   
      
    >   
    > Maybe you should try a SYS 631 command after line 60 to actually CALL   
    > the ML code you POKEd into locations 631-633.   
    >   
      
   What Geo POKEd was not ML code, it was the PETSCII codes for nE   
   (nE is the abbreviation of NEXT). So a SYS won't do anything useful.   
      
   I typed the one-line BASIC program Geo posted and it did exactly what it   
   was supposed to do.   
      
        **** commodore 64 basic v2 ****   
      
     64k ram system  38911 basic bytes free   
      
   ready.   
   60poke631,78:poke632,197:poke633,13:poke   
   198,3   
   run   
      
   ready.   
   nE   
      
   ?next without for  error   
   ready.   
      
   That is, the BASIC program was typed and run, and it entered nE   
   in the keyboard buffer. After the BASIC program exited, the keyboard   
   buffer was emptied, automatically typing nE. Therefore the BASIC   
   command nE was executed, and it returned what was expected in that   
   context (an error, no FOR command had been executed in that context).   
      
   So, it works as it should, no matter what Geo expected. What did Geo   
   expect, then?   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca