|   Post Your Message  |   |  
  |   |   
  
 |   Previous Messages  |  Posted By
   Fuzzweed on 2024-10-20 16:46:02
  |   Re: autorun m/c program
  Thanks, thats helpful
  |   
 |  
Posted By
   SukkoPera on 2024-10-20 13:01:33
  |   Re: autorun m/c program
  I use this, which is exactly the same thing and gives you an idea of what those bytes mean exactly:
 
 ; BASIC launcher !if PLUS4 {     * = $1001 ; 10 SYS 4109 ($100d)
      !word nextln, 0     ; second word is line number     !byte $9e           ; SYS     !pet "4109"         ; Address (in string format)     !byte 0             ; End of instruction nextln:     !byte 0, 0          ; End of BASIC program
      * = 4109 } else {     ; C64     * = $0801 ; 10 SYS 2064 ($0810)     !byte $0c, $08, $0a, $00, $9e, $20, $32, $30, $36, $34, $00, $00, $00
      * = $0810 } 
  |   
 |  
Posted By
   Fuzzweed on 2024-10-20 08:49:11
  |   Re: autorun m/c program
  Yeah there's a few kernel exploits for the 64. Pretty sure one or more could be adapted. I am.just vErY lAzY and thought it might have been done for me already. Overflowing the stack is clever.
  |   
 |  
Posted By
   Harry Potter on 2024-10-20 06:55:28
  |   Re: autorun m/c program
  Once, I looked at a program which does that for the C64 and found that it starts on the beginning of the stack and fills the stack with $02's and I think boot code at $0202.  Does this help?
  |   
 |  
Posted By
   gerliczer on 2024-10-20 06:41:02
  |   Re: autorun m/c program
  That is perfectly legit code to start a program with RUN. Starting a program without any other user intervention than loading it is a complicated procedure, unless you have installed some expansion or modification doing that for you in case of RUNnable programmes. Emulators may even do that as drag-and-drop behaviour. If you can find examples of how to do it on C64 then you may have a chance that you can adapt them to 264 series machines if they depend only on KERNAL or CPU exploits.
  |   
 |  
Posted By
   Fuzzweed on 2024-10-20 05:33:59
  |   autorun m/c program
  hi, I was offered this code as a header to auto start a m/c program but it doesn't seem to work. Should it? Is there a better simple header for +4? I can find several methods for c64, but nothing for +4
  * = $1001 !byte $0b,$10,[lsb]code_start,[msb]code_start,$9e,$34,$31,$31,$30,0,0,0,0
 
  |   
 |  
  |   |   
 Copyright © Plus/4 World Team, 2001-2025. Support Plus/4 World on Patreon |