From: kegs@provalid.com   
      
   In article ,   
   fadden wrote:   
   >On Thursday, April 6, 2023 at 9:02:57 AM UTC-7,   
   >sc...@alfter.diespammersdie.us wrote:   
   >> The weird bit is that it appears to be disguised as a BASIC program so it   
   >> can be LOADed and RUN, rather than BLOADed and CALLed.   
   >   
   >That's the standard approach for C64, e.g. this is common:   
   >   
   > .addrs $0801   
   > .dd2 $080b ;ptr to next line   
   > .dd2 $0014   
   > .dd1 $9e ;SYS 2061 ($080d)   
   > .str “2061”   
   > .dd1 $00   
   > .dd2 $0000   
   >   
   >L080D ldy #$1e   
   >   
   >In this case it's a HELLO program that starts when DOS boots, which IIRC   
   >wouldn't work with a 'B' file unless you fiddled with something.   
      
   But...that's because the C64 can only really LOAD Basic programs from the   
   floppy drive. So of course they have to do it like this. It is not unheard   
   of to sneak machine code into an Applesoft BASIC program on the Apple II, but   
   it is unusual (since it's not necessary, generally). On an Apple II, it's   
   definitely annoying to have to deal with machine code hidden in a BASIC   
   program.   
      
   Kent   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|