[Coco] running BASIC in RAM (was "Coco Questions")

Robert Gault robert.gault at worldnet.att.net
Sun Oct 29 09:20:03 EST 2006


Aaron Banerjee wrote:
> I'm not sure how useful this would be, but just in case there were silent
> lurkers hoping someone would post a short quip to put your coco in all ram
> mode (with BASIC running...).  I've added comments showing what (I hope)
> is the assembly version of the driver.
>                         - Aaron
> 
> 5  DATA 26,80:REM                 ORCC   $50     MASK INTERRUPTS
> 10 DATA 142,128,0:REM             LDX    $8000   START OF BASIC
> 15 DATA 166,132:REM       LINE15  LDA    ,X
> 20 DATA 183,255,233:REM           STA    $FFDF   MAP TYPE 1
> 25 DATA 167,128:REM               STA    ,X+
> 30 DATA 183,255,222:REM           STA    $FFDE   GO BACK TO REGULAR MEM
> 35 DATA 140,255,0:REM             CMPX   $FF00   END OF RAM
> 40 DATA 38,241:REM                BNE    LINE15
> 45 DATA 183,255,223:REM           STA    $FFDF   STAY IN ALL RAM MODE
> 50 DATA 28,175:REM                ANDCC  $AF     UNMASK INTERRUPTS
> 55 DATA 57:REM                           RTS     RETURN
> 60 REMEMBER THE ALAMO!!
> 65 FOR X=3584 TO 3609
> 70 READ D
> 75 POKE X,D
> 80 NEXT X
> 85 EXEC 3584
> 
> 

Don't use this on a Coco3 unless you want to remove all the Super 
Extended commands.



More information about the Coco mailing list