• Commodore Free, Issue 68 - Part4

    From Stephen Walsh@39:901/281 to all on Tue Mar 26 19:56:11 2013
    RACK 18) WITH
    REQUESTING INTERLEAVE

    You can use GUI to build own D64 trackmo disk

    save project and make compilation from command line

    INFO FOR LOADER ABOUT FILES ARE ADDED TO THE INCLUDE FILE "TRACKS DATA.INC"
    AND SAVE ON THE TRACK $12 SECT $02 IN ORDER:

    * OFFSET 0 - STARTTRACK FILES

    * OFFSET 50 - STARTSECT FILES

    * OFFSET 100 - BLOCKS LENGTH FILES

    * OFFSET 150 - LO BYTE LOAD ADRESS OF FILE

    * OFFSET 200 - HI BYTE LOAD ADRESS OF FILE

    HOW YOU SEE - 50 FILES PER ONE SIDE FOR TRACKMO WOULD IT BE SAVED - THATS ENOUGHT I HOPE :)

    Possible parameters for cmdline:

    "filename.c64link" file of project d64 -SILENT without error messages
    -L0
    create d64 without Dirloader
    -L1
    create d64 with Dirloader V1 (option special for hoxs64)
    -L2
    create d64 with Dirloader V2 (option special for hoxs64)
    -DIRENT
    files will be in DIRECTORY without loader and infoblock (18,2)
    -FF
    link to start file for trackmo will be on the first file in the project
    -LF
    link to start file for trackmo will be on the last file in the project
    -INC "filename"
    make file with data start track and sector for (Deterministic) Loader
    -D64 "filename"
    make d64 file to specified filename
    -DISKNAME "NAME OF DISK"
    this will be diskname (max 16 chars)
    -DISKID "ID..."
    this will be disk id (max 5 chars)

    -inc "filename" strong recommendation typed name "TRACKS DATA.INC" cause this filename is included in 2nd procedure of Deterministic Loader

    Example cmd line:

    "trackmolinker.exe" "LINKNEW.C64LINK" -INC "TRACKS DATA.INC" -L0 -LF -D64
    "DETERMINISTICLOAD"

    * open project LINKNEW

    * save file with info of tracks "TRACKS DATA.INC"

    * make d64 file named "DETERMINISTICLOAD.d64"

    * without Dirloader

    * and link file in dir will be to last file

    check the batch file "createsample.bat"

    Theory for extended:

    When you do the trackmo, you can be a bit more deterministic in this point

    You don't load some files - You're loading very good known files so you can know BEFORE where they are placed and the load address of them. These two simple things give You better options for FLUENT load because when you use nointerleave loader - you don't risk losing 0.2 sec on every one track for scanning - You can know this before on this same rule you can know BEFORE the load address this file so you don't must WAITING EXACTLY for first sector of file when You know where You put this file to ram

    Just simple two things geave 35*0.2 sec for all disk faster load + average 0.1 sec for every one file without waiting on the first sector and also next one 0.2 sec on every one track where 2 files are on them this track will be
    scanned 2x for prior file and for the next file

    The next optimize:

    In Deterministic Loader You can use the option WITHOUT stop motor - for every one file don't must wait for get the speed of motor

    Last optimize:

    For determ loader files should be saved with interleave 4 - why 4 and why interleave?

    for FLUENT loading (check deterministic loader demo) the parts of file on the track for example when loading file which have on actual track have only 3 blocks of data You don't must wait for next sector 0.2sec cos data are placement optimize

    Extra optimize for extra ordinary case:

    Some times (? or very often?) You do not have IN THIS MOMENT enough memory to load next file but You have free rastertime and place for maybe half of file..

    Special option added - SPLIT FILE - You can split on the more parts this
    file and done partial load of this.

    Added also change load address of file for this case and own needs...

    Simple use for Determ. Loader:

    1st procedure You used always on the start

    call JSR PROC1 and that is all

    the result is on the carry flag so

    JSR PROC1
    BCC OK
    BCS DEV_NOT_PRESENT

    do this in 3 bank of VIC - this is a normal situation after reset

    You can put to $BA nr of drive or procedure try do this self by check the
    first unit which is a present. Usually $BA have got nr of last used drive and this should be enough. You can calling function from a jump table - below:

    A jump table of this

    * PROC2 = LOAD FILE AND STOP MOTOR

    * PROC2+3 = DISCONNECT LOADER

    * PROC2+6 = LOAD FILE WITHOUT STOP MOTOR

    * PROC2+9 = TORN OFF THE MOTOR

    * PROC2+12 = SEND BYTE FROM ACC TO THE DRIVE

    so simple use

    LOADING FILE INTO *** $C000 *** FROM START TRACK 1 AND SECTOR 0

    ...
    LDA #<LENFILE
    LDY #>LENFILE
    ; a/y lo/hi byte pointer to 5
    ; infodata bytes
    JSR PROC2 ;or JSR PROC2+6
    BCS *
    ; LOAD ERROR - DEMO CRASHED
    ; NOW IN ACC/XREG LO/HI IS THE
    ; POINTER TO END OF DATA+1 FOR OTHER
    ; CASE LIKE EXO BACK DECRUNCH...
    ...
    ;---
    LENFILE .BYTE LENBLK_FILE0
    VECADR .WORD $C000
    STRTTRK .BYTE $01
    STRTSEC .BYTE $00

    check the simple demo added to project

    For special options the change disk engine showed how You can send to drive
    own programs and run... that don't should be so hard for You I guess...

    IMPORTANT: Loader used one block of the ram for arriving data before PROC2 label or You can change this in source code


    *************************************
    BONGO CRUNCHER RELEASED
    *************************************

    csdb.dk/getinternalfile.php/113797/bongocruncher.zip

    Crunch files with the Bongo cruncher, the software has an option to set manually change the settings or you can just load a file and crunch it with
    the default settings at the click of a button!


    *************************************
    REVENGE OF THE TOMATO
    *************************************

    Yet another game released The new Dimension TND AKA Richard Bayliss! the zip file has the TAP and D64 images or you can download which ever version suits your mood by clicking on the corresponding link here in this document

    GAME STORY:

    It is the year 2173. Planet Earth was full of peace and hope, until one day -
    while everybody was fast asleep in bed, snoozin' away, dreaming of good things. Aliens hovered above the towns and cities searching for a good source for an invasion. The humble tomato. The very next day, everybody woke up to hear on the radio that an unexpected series of objects are floating above the city. Scientists looked above their telescopes noticing that it is a tomato. When saw tomatoes floating above the sky. They found it to be hilarious. Unfortunately, what they thought were hilarious, turned into horror. One of
    the tomatoes swooped down, and sucked a victim. The city was turned into turmoil. People panicked and they started running for their lives. Some of which were just too dumb to even enter back to their flat and office buildings.

    The president called for help, and thankfully help comes at hand, by a world's famous heroic leader in the technology market, and Skyship industry ... YOU .. That's right, you are the chosen one.

    PLAYING THE GAME:

    Use a joystick plugged into port 2.

    Your mission is to pilot your Skyship through the towns of cities, which are infested with deadly mutant tomatoes. Blast your mega double laser beams at 'em. They are the main cause for chaos. Luckily for you that's your only mission ... Or is it? Seriously not. Your mission is to travel all the way across several towns and cities, and countryside. Not only do you have to
    shoot the tomatoes, but you also have to rescue the people who are stranded on top of buildings or elsewhere. Simply pick them up in the right place, but DO NOT CRASH INTO MOUNTAINS, BUILDINGS, STRUCTURES or any other background.
    (Light houses you will go past).

    At the end of your journey, blasting through the small tomatoes. You will end up facing the final ordeal by fighting against the MEGA TOMATO. This evil guardian requires 50 shots before it gets destroyed. Those tomatoes will try their best to destroy your space craft if they get near to you - or you get near to them. Can you save the world from complete fruity chaos, or will the Mega Tomato dominate this planet?. ... I say good luck pilot. Get blasting.

    Hope
    --- CrashWrite 2.0
    * Origin: --:)-- Dragon's Lair BBS --(:- (39:901/281)