Image Map Image Map
Page 5 of 5 FirstFirst 12345
Results 41 to 49 of 49

Thread: 8050

  1. #41

    Default

    Quote Originally Posted by Gary C View Post
    Is that with BASIC 4.0 or should it be the same with BASIC 2.0 ?
    The same.

    Anyone know the protocol ?
    10 OPEN 15, 8, 15
    20 INPUT# 15, A$, B$, C$, D$
    30 PRINT A$, B$, C$, D$
    With kind regards / met vriendelijke groet, Ruud Baltissen

    www.baltissen.org

  2. #42
    Join Date
    May 2018
    Location
    Lancashire
    Posts
    328

    Default

    Quote Originally Posted by Ruud View Post
    The same.


    10 OPEN 15, 8, 15
    20 INPUT# 15, A$, B$, C$, D$
    30 PRINT A$, B$, C$, D$
    Forgive me, I mean, when type LOAD"XXX",8 and XXX is not on the disk, should the PET just stick at displaying LOADING, or should it display an error message and return to READY.

    I can read the error messages from the drive, what I cant seem to get clear is how the PET responds to an error on the drive and if the drive should send anything down the GPIB without being prompted

    I should have kept only one thread, sorry.

  3. #43
    Join Date
    Feb 2009
    Location
    Southern California, USA
    Posts
    2,819

    Default

    Quote Originally Posted by Gary C View Post
    The next thing I need to work out is, how are machine language programs saved?
    Save machine code in PET to Disk:

    Get to the Machine Language Monitor: SYS 400 (gets to a BREAK Instruction).

    .S "0:TEST FILE",08,0800,0C80 (Return)

    This example SAVES to Drive #0 of the disk unit (device #08 ), the contents on memory from $0800 to (but NOT including) $0C80 as a Program File named 'TEST FILE'.

    When SAVE completes, the dot prompt will will be shown. EXIT with X command to BASIC:
    .X (Return)


    Note: When SAVING to Disk always specify the Drive # or your diskette will be corrupted. Also follow syntax exactly - no extra spaces!
    Last edited by dave_m; October 30th, 2019 at 02:28 PM. Reason: Exit command

  4. #44
    Join Date
    May 2018
    Location
    Lancashire
    Posts
    328

    Default

    Thanks, it works but I now need to adjust my program to cope with the drive number with a bit of parsing

  5. #45
    Join Date
    May 2018
    Location
    Lancashire
    Posts
    328

    Default

    File system well underway.

    I've chosen to setup the SD card file structure with folder names numbered 0 to 9. Each of these folders are then a 'drive'. The software defaults to drive 0, so LOAD"$",9 gets the directory listing from drive 0, and LOAD"4:filename",9 will load a file from 'drive' 4. As an SD card can hold a huge amount of PET programs, I needed a way to split them up and this works well.

    Got a CPC case coming for Christmas so it should look professional.

    I have three spare PCB's for free if anyone's interested (with the warning the GPIB connector is a bit close to the USB socket so the pins must be bent or cropped after soldering) and I do have one with the IEEE connector and the SPI interface already in place but this would have a small cost and I've not tested it yet.

    This is just a personal project and it may get overtaken by something shiny in the future, but for now its exercising the brain cells in a fun way.
    Last edited by Gary C; November 25th, 2019 at 10:07 AM.

  6. #46
    Join Date
    Dec 2005
    Location
    Toronto ON Canada
    Posts
    7,291

    Default

    Any pics of the Mega with your board mounted?


  7. #47
    Join Date
    May 2018
    Location
    Lancashire
    Posts
    328

    Default

    Will try to take a snap tonight but its mad at home.

  8. #48
    Join Date
    May 2018
    Location
    Lancashire
    Posts
    328

    Default

    20191229_192137.jpg

    Bit blurred im afraid.

    Basically its just a PCB same size and shape of the mega, with through pins to mount it. You could do it without a PCB and just wire the connections to headers.

    Anyway, works for now and want to pick up development in April after the Maintenance shutdown at work is completed.

  9. #49
    Join Date
    Dec 2005
    Location
    Toronto ON Canada
    Posts
    7,291

    Default

    Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •