Jump to content



0

Basic rev. C from disk or file?


10 replies to this topic

#1 Marius1976 OFFLINE  

Marius1976

    Stargunner

  • 1,702 posts
  • Location:Netherlands

Posted Mon Feb 6, 2012 3:43 AM

In my Atari I replaced the Basic chip with the Synassembler Rom.

Sometimes I need basic, and I don't want to boot Turbo Basic.

Is there a working binary of disk version of Basic Rev. C?

That would be awesome.

Thanks
Marius

#2 Rybags OFFLINE  

Rybags

    Quadrunner

  • 10,314 posts
  • Location:Australia

Posted Mon Feb 6, 2012 5:21 AM

Unsure - from what I've heard there's a patcher out that copies Rev B to ROM and applies the C fixes but that's not useful to you.

To run an 8K language image you need a CASINI routine that switches the ROM out when the user hits Reset. By leaving the ROM switched in, that prevents the screen from overwriting the top 1K of the RAM copy of Basic.

I did something for the AsmEd image that leaves Basic in and allows switching between the 2. Mine had the Casini routine sitting around $9B00 though which is not real safe since any screen open for a graphics mode > 1K would wipe it.

Best idea would probably to have the Casini routine near the bottom of the stack. It should only take about 30-60 bytes of programming but needs to be kept safe because if wiped the machine will lockup on Reset.

Here's the code I use to allow swapping between the Basic ROM and AsmEd based in RAM:

9B81    LDA $D20F ;SKSTAT
9B84    AND #$08
9B86    STA $04 ;RAMLO
9B88    BNE $9B92
9B8A    LDA $9B80
9B8D    EOR #$02
9B8F    STA $9B80
9B92    LDA $9B80
9B95    AND #$02
9B97    STA $9B80
9B9A    LDA $D301 ;PORTB
9B9D    AND #$FD
9B9F    ORA $9B80
9BA2    STA $D301 ;PORTB
9BA5    LDA #$12
9BA7    STA $02D9 ;KRPDER
9BAA    LDA #$03
9BAC    STA $02DA ;KEYREP
9BAF    JSR $9BBD
9BB2    LDA #$03
9BB4    STA $09 ;BOOT
9BB6    LDA $04 ;RAMLO
9BB8    STA $08 ;WARMST
9BBA    JMP ($BFFA)
9BBD    JMP ($000C) ;DOSINI
9BC0    LDA #$9B
9BC2    STA $0345 ;B0-ICBAH
9BC5    LDA #$0C
9BC7    STA $034A ;B0-ICAX1
9BCA    STA $034B ;B0-ICAX2
9BCD    JSR $E456 ;CIOV
9BD0    RTS

Here's the executable - Attached File  asm.xex   8.19K   6 downloads

Edited by Rybags, Mon Feb 6, 2012 5:43 AM.


#3 Larry OFFLINE  

Larry

    Stargunner

  • 1,731 posts
  • Location:U.S. -- Midwest

Posted Mon Feb 6, 2012 6:35 AM

Yes, there are bload versions of Basic-C floating around. If you have a PILL or such that is a really good alternative, since then the "cart" will survive a reset. Alternatively, you could put in a 27256 (or more) with multiple progs using a switch. Lots of alternatives.
-Larry

#4 sloopy OFFLINE  

sloopy

    River Patroller

  • 2,258 posts
  • lookin for bits, i like bits...
  • Location:in my cave of despair, surrounded by toys...

Posted Mon Feb 6, 2012 6:52 AM

Maybe better idea to make your internal 'BASIC' ROM swappable from synassembler and BASIC, or use a cart...

cart would take the slot, but a switched ROM, would be best... and easy to do. if you used something like http://store.go4retr...m/2364-adapter/ this from Jim Brain, you could switch 8 different ROMs...

sloopy.

#5 Marius1976 OFFLINE  

Marius1976

    Stargunner

  • 1,702 posts
  • Location:Netherlands

Posted Mon Feb 6, 2012 7:59 AM

@sloopy

Usually I would agree with that, but I did not mention it... but my Basic Rom is 'replaced' by the Ultimate 1MB. I flashed Synassembler in the Basic slot. Unfortunately the Ultimate 1MB does not let me switch between Missile Command and "Basic" slot. (Why In the world did candle not built that feature in?!?!).

I use Synassembler 99% ... but sometimes I need basic. I don't want to boot Turbo Basic for that. Too much. So a binary of basic is a good alternative.

Yes a Cart would do too... but I know myself: when I need such a cart, I can't find it... and a file is always there where I need it: on my harddisk.

Thanks for all your help folks!
I'm on my work now, so I can not reply to anything (no time) but when I'm at home tonight... I will reply on more things!

#6 rdemming OFFLINE  

rdemming

    Dragonstomper

  • 743 posts
  • Location:The Netherlands, Amstelveen

Posted Mon Feb 6, 2012 8:35 AM

View PostMarius1976, on Mon Feb 6, 2012 7:59 AM, said:

but my Basic Rom is 'replaced' by the Ultimate 1MB. I flashed Synassembler in the Basic slot. Unfortunately the Ultimate 1MB does not let me switch between Missile Command and "Basic" slot. (Why In the world did candle not built that feature in?!?!).

I'm just thinking, when having an XL/XE and the Ultimate 1MB: If you flash the XEGS OS rom (rev 4) and set the P3 (XEGS) jumper, can you hold <SELECT> while turning on to boot Missile Command just as a regular XEGS? Then you could replace Missile Command with SynAssembler.

Robert

#7 Rybags OFFLINE  

Rybags

    Quadrunner

  • 10,314 posts
  • Location:Australia

Posted Mon Feb 6, 2012 8:39 AM

In theory, the Diag OS might be able to be replaced with 2 8K ROM images.
Then a program could temporarily switch that OS in and copy one to RAM then switch the normal OS back in.

http://www.spiflash.org/block/20.html

#8 sloopy OFFLINE  

sloopy

    River Patroller

  • 2,258 posts
  • lookin for bits, i like bits...
  • Location:in my cave of despair, surrounded by toys...

Posted Mon Feb 6, 2012 8:48 AM

The benefits of owning an XEGS :')

sloopy.

#9 Rybags OFFLINE  

Rybags

    Quadrunner

  • 10,314 posts
  • Location:Australia

Posted Mon Feb 6, 2012 8:52 AM

I suspect the Missile Command ROM can be gotten at on other machines.

Might have to have a play around.

#10 russg OFFLINE  

russg

    Dragonstomper

  • 523 posts
  • Location:Cleveland, Ohio

Posted Mon Feb 6, 2012 9:45 AM

BASIC C, binary load.Attached File  BASICC.zip   6.45K   13 downloads

You can enter DOS, then RUN A000 to get back to BASIC.
You have to have internal A000 off, hold OPTION at boot.

Edited by russg, Mon Feb 6, 2012 9:52 AM.


#11 trub OFFLINE  

trub

    Chopper Commander

  • 104 posts
  • Location:Poland

Posted Mon Feb 6, 2012 9:48 AM

You will find file based Atari Basic (ABASIC) on my site (load with X from SDX)

Edited by trub, Mon Feb 6, 2012 9:54 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users