Mam do sprzedania SD-BOX za 350 zł. Jesteś zainteresowany, to skontaktuj się. |
SD-BOX v1.15/SD-BOX MINI v1.15
The SD-BOX is a device that combines SD2IEC and cartridge. Such combination allows for easier and faster use of its features. The SD-BOX will enable you to:
- contents of a disk or an SD card
- select available storage devices (1, 8-11)
- verify files stored on the tape
- stop loading or verification process during searching, displaying information or loading itself
- change the name of the saved program, if applicable (disk only)
- rewrite on the tape or disk in case of error
- run loaded file from tape or disk, also with bootloader
- select device you are going use (1, 8-11)
- fast switching between devices for reading or direct choice of the recording device number
- fast disk directory listing for SD2IEC on any KERNAL
Copying files:
- up to 202 blocks units starting from address no. 2048
- tape to tape copying with the tape recorder buffer (allows you to copy protected recordings, such as: Micruscopy, Tape protector, !Copy error and others)
- tape to disk copying of protected recordings with the option to remove protection (Micruscopy 1 - 3 and Tape Protector v1.5), or run in a format enabling protection
- disk to tape copying, up to 99 of selected files
- disk to disk copying, starting with any address (also within the same drive)
Other advantages of SD-BOX:
- colored stripes for the tape recorder during read or write
- smart, one-second back-off when pressing PLAY or PLAY & RECORD
- turbo Exos v3 for a drive with the original KERNAL
- menu in Polish and English
- controlling menu with the use of joystick or keyboard
Insert cartridge with its label side up to the EXPANSION PORT placed on the rear panel of the housing, and connect the cable to the SERIAL jack in your computer PC or drive. The described procedure should be performed with the power off (i.e. switch set to 0). Failure to do so may damage your device or computer.
Once power is on, we will see the logo, and then the menu with an option to SELECT LANGUAGE. Once selected, the language can be changed only after resetting SD2IEC (see Section 4.8). To navigate the menu, use the CRSR arrow keys and press RETURN to confirm the selected option. Alternatively, you can use the joystick and confirm with FIRE.
The list of connected devices (drives) will be then displayed along the window title SELECT AN AVAILABLE DEVICE. The following devices are available:
1 - DATASSETTE,
8 - 11 - disk drives.
No device is indicated by the message DEVICE NOT FOUND, displayed immediately after its number. To select the tape recorder or the drive, place the cursor in the menu on the selected device and press RETURN. Alternatively, you can use the joystick. When selected, the device number will be automatically remembered, so that there's no need to reselect it after reboot.
Below you will find 2 more options:
REFRESH re-checking and re-listing of available devices,
CANCEL - return to the previous menu. This is possible only when the last selected device is available.
When you press RESET, this menu won't be displayed. It will appear only once the device with the last selected number has been found.
In the top right corner of the screen, the selected number of the device will be highlighted in green.
In the top right corner are displayed:
the available devices - in white,
unavailable devices - in gray,
currently selected reading device - in green,
currently selected writing device - in red,
and currently selected reading and writing device - in orange.
To switch between reading devices (e.g. from tape recorder to drive), simply press:
1 - DATASSETTE,
8, 9, 0, + - disk drive 8 - 11.
When performing the switch, the availability of the selected device will be checked. If the device isn't available, you will need to select one of the devices again, as described in Section 2.1.
You can also change the number of the reading device to an unavailable number, but only once the device assigned to it has been plugged in and hasn't been switched on before.
If you select the files to be copied, the following message will appear: x FILE(S) MARKED. DO YOU WANT TO REFRESH YES/NO? - when the currently selected device number has the same number as the one to you want to switch to, and it is one of the disk drives
or x FILE(S) MARKED. DO YOU WANT TO CHANGE DEVICE YES/NO? - when the selected number is different from the currently selected one.
These messages appear when the device you want to switch to is available or you have selected specific directory, disk image, or M2I file.
Selecting the writing device does not allow you to check the availability of inactive numbers of individual devices. To change your selection, press the corresponding number along with the SHIFT key:
1 - DATASSETTE,
8, 9, + - disk drive 8, 9 and 11,
CTRL + 0 - disk drive 10.
When selected, information about the available change options and the number of the selected device - DEVICE, will appear on the right side.
This option enables you to load programs, also those that are protected, from any KERNAL, even the one that doesn't support loading in normal mode.
Press the F1 function key, and after receiving the message LOADING - PRESS PLAY ON TAPE, insert the tape into the tape recorder, and then press PLAY on the recorder. This will launch searching of the program, as indicated by colorful red and black stripes. Once it has been found, you will receive information about:
name of the program, starting address, ending address, header type, buffer, presence of protection and the found file verification - Yes or No.
The header can assume values 1 or 2, depending on the method of recording. Value 1 means the programs are being loaded from the beginning of memory (usually its beginning is 2049), while value 2 means loading under a specific address displayed in the window. Read error of the tape recorder buffer means it hasn't completely loaded. This can result in malfunction of the protected recordings. In the found protection type field, the following messages may appear:
NONE - file is not protected (green) or probably is not protected (orange),
MICRUSCOPY 1 - 3, Tape Protector v1.5 - recording is protected by one of those methods,
UNKNOWN - file is protected by an unknown method.
The last of the messages doesn't always refer to file protection, although it's suggested otherwise - sometimes an error may occur during data read.
Only during the verification, information is provided whether the found record is exactly the one that's supposed to be verified in terms of accuracy of the data after recording.
Once the title has been found, we can also receive the INCORRECT INITIAL ADDRESS message.
This happens when the address is smaller than 2048. Another message we can receive is FILE TOO LARGE.
This message notifies of the large size of the loaded file. The maximum size is 52,070 bytes.
To continue the reading of the recording, press the SPACE BAR or wait for about 10 seconds. During load, search or information display, you can abort it by pressing RUN/STOP key, which is indicated by the following message: WARNING - LOADING ABORTED.
The process of loading itself can be distinguished by variable colored stripes. If the file has been successfully loaded, you'll get the message RUNNING - PRESS STOP ON TAPE recorder.
This helps prolong the service life of the carrier. Leaving the folded stripe in the same position for a longer period of tie may prevent correct reading of the recording in the future. Once done, an attempt to run the downloaded data will be made.
It may happen that the recording has been erased or not fully recorded. This will stop the process of loading and the read error will appear - WARNING - LOAD ERROR.
This problem may also be due to improper placement of the head's bevel (see Section 3.3).
Allows you to make a backup of the tape recordings stored in the TURBO system. The menu enables you to copy from disk to tape, or from tape to tape, with or without verification. The procedure has been described in detail in Section 6.
This program is used to correctly set the head's bevel.Press PLAY on the tape recorder, insert a screwdriver into the hole located just above the recorder's keys, and screw it so that the visible stripes are thin and even. Rippled stripes means incorrect drive belt movement during reading or previous recordings. This could make the replacement of the drive belt necessary. You can select one of the following systems:
F1 - normal.
F3 - TURBO.
Once done, visible stripes should be contained within the sectors. Pressing RETURN key will take you back to the tape recorder's menu.
Displays information about the version and the author of the device.
Displays the list of additional games that can be found on the cartridge.
Exit to BASIC. Cartridge is disconnected and returning is only possible by pressing RESET.
Enables you to change the current device to another from the ones available. After displaying the board with the available devices, the field of the currently used device will be highlighted, provided that it has been found. The principle is the same as the one described in Section 2.1.
After selecting the device 8-11, an attempt will be made to read the content of the disk directory. During the read, all the titles contained in the disk will be displayed, including their type, disk name and its identifier. Type of all files whose size is 0 bytes will be marked in red, while the read-only files will be distinguished by lowercase letters. The following information will be displayed on the right side:
SIZE - size of selected files to be copied in blocks.
MARKED - number of marked files to be copied.
DEVICE - number of the current device.
BLOCKS - size of the marked item.
ELEMENT - number of the selected item.
BLOCKS FREE - amount of available blocks on the disk, disk image or an SD card.
When reading the disk directory, there may occur error messages such as: DEVICE NOT FOUND, INSERT DISK or READ ERROR. The last one means that the disk directory hasn't been read correctly. You can perform the read again by selecting REFRESH (the F5 function key) or changing the device to the one currently selected.
Navigating the disk's list of items works the same as elsewhere, i.e. using CRSR arrow keys or a joystick. Pressing the arrow keys together with SHIFT will select the first or the last item, while . and ,will scroll the list of titles one page to the left or right. To run the selected program, highlight its name and press RETURN. Now, depending on the KERNAL, loading will be launched. When the KERNAL is standard, the speed of the process will increase up to 15 times. You can only run files with the PRG, extension whose length doesn't exceed 202 Blocks, as well as those with bootloader. If the disk has been removed or changed, or the disk drive has been disabled, in the meantime, one of the following messages will appear: FILE NOT FOUND, INSERT DISK or DEVICE NOT FOUND. Clicking OK will display the menu of available devices.
Apart from these extensions, there are others marked as follows:
SEQ - sequential file,
REL - elative file,
USR - user file,
DEL - deleted file.
If the directory has been listed using SD2IEC, the following extensions may appear:
DIR - subdirectory,
D64 - drive 1541 disk image,
D71 - drive 1571 disk image,
D81 - drive 1581 disk image,
M2I - special disk format of unlimited length,
LST - file containing a list of disk images.
Selecting the first item will make you return one level up (works only on SD2IEC) and will refresh the list of disk directory files. In case of losing communication with the current device, you will be prompted to change the device.
Enables you to backup disk files. The menu allows you to copy from disk to disk or tape, with or without verification. The procedure has been described in detail in Section 6.
Used to re-list the disk directory. If you have selected a file to be copied, the following message will appear: x FILE(S) MARKED. DO YOU WANT TO REFRESH YES/NO?
The same message appears when you select a folder, disk image or M2I file.
Displays information about the version and the author of the device.
Displays the list of additional games that can be found on the cartridge.
Exit to BASIC. Cartridge is disconnected and returning is only possible by pressing RESET.
Enables you to change the current device to another from the ones available. After displaying the board with the available devices, the field of the currently used device will be highlighted, provided that it has been found. The principle is the same as the one described in Section 2.1.
Adds or removes files to be copied from the list. You can add up to 99 items.
Selected using @, only works on SD2IEC. Enables the following options:
CHANGE SD2IEC NUMBER - changes the device number. After selecting this option, the found devices are listed. Select one of the fields DEVICE NOT FOUND and confirm the selection. Pressing CANCEL will make you return to the previous menu.
SAVE SETINGS TO EEPROM - saves the selected device number in EEPROM. To permanently save the new device number, use this option. The first option will change the device until you reset SD2IEC or remove the SD card. This option will be unlocked once the device number has been changed.
RESET SD2IEC - we get the same effect as when starting the computer.
BACK - return to the disk menu.
A device emulating the disk drive to some extent. It allows you to read and write files directly on the disk as well as disk images. Also enables you to quickly switch between disks thanks to two dedicated buttons located on the left side of the cartridge. During the read, the green LED is lit; during the write - red and green, therefore orange; any error is indicated by the LED continuously blinking in red.
To activate the disk change mode, press one of the two buttons (PREV or NEXT), provided that the current directory contains an AUTOSWAP.LST file. This option works only with the disk directory. This means that after switching to the disk, without selecting the disk change mode first, switching won't work.
Changing the disk is indicated by a blink of the LED. Pressing the same button triggers further switching between the disks. It may happen that we don't know which disk is currently selected. In this case, return to the first one by pressing the two buttons simultaneously.
- Create new file named AUTOSWAP.LST and open it in any text editor.
- Enter the disk image file names, each name in separate line.
- Save the file.
Example:
Barbarian2-1.d64
Barbarian2-2.d64
After selecting this option, the copy menu will appear. Alternatively, you will be asked to select the storage device - SELECT TARGET DEVICE, but only when using this option for the first time, or if the target device is not available.
The menu includes the following options:
BEGIN COPYING - starts copying,
TARGET DEVICE - number of devices the files will be saved on. With this option, you can change the storage location,
VERIFY - this option only works for the tape recorder and enables you to verify whether writing has been correct,
UNLOCK - attempt to remove protection after the correct tape read,
BACK - return to the main menu of the selected device. In case of a disk drive, the list of files will be refreshed.
All files whose starting address is 2048 or bigger, and their size doesn't exceed 202 units, can be copied on the tape. When copying onto disk, the starting address is of no importance, it is only the size of the file that matters. After selecting the copy option from the menu, there may appear an error message - WARNING - NOT FILES MARKED if no file has been selected to be copied.
To select or deselect the file, use the SPACE BAR. Options UNLOCK works only while copying from tape to disk.
We can copy all the files between tapes, including those protected - Micruscopy, Tape Protector v1.5, !Copy Error, since it's an identical copy, together with the tape recorder buffer. Copying works on any KERNAL, even the one without the option to load in normal mode.
Before selecting this option, you can select VERIFY -- that is check the record - works only when writing onto tape.
After selecting this option, you will be informed that copying has started, and prompted to insert the source tape and press PLAY on the tape recorder - COPYING - INSERT THE SOURCE TAPE AND PRESS PLAY ON TAPE.
Once the record has been successfully loaded, press STOP on the recorder
and, depending on the verification settings, you will receive the following message:
- INSERT THE TARGET TAPE AND RESET COUNTER, PRESS RECORD&PLAY ON TAPE on the recorder (option with verification) or
- INSERT THE TARGET TAPE AND PRESS RECORD&PLAY ON TAPE on the recorder (option without verification.
Pressing RUN/STOP will display information about the recording process being incomplete, and will offer you the option to repeat the process - SAVING INCOMPLETE - DO YOU WANT TO SAVE AGAIN? (YES/NO).
Selecting YES, will display the previous message, while selecting NO will inform you that the process has been aborted. - WARNING - SAVING ABORTED.
During the record, there are black and blue stripes visible. The program recognizes complete recording when RECORD&PLAY. are pressed afterwards. Otherwise, you will receive an incomplete record message. Once the record has been completed, press STOP on the recorder. You will then be prompted to insert the source tape, etc.
Selecting option a the one with verification, you will be prompted to rewind the tape to the counter position 000 and press PLAY - VERIFYING - REVIND TAPE TO 000 AND PRESS PLAY ON TAPE.
This time, pressing RUN/STOP, as was the case previously, will abort verification and you will get the message - WARNING - VERIFYING ABORTED.
During the verification of the recording, it is only confirmed when all bytes match with those recorded after finding the title.
A verification error may occur when at least one of the bytes differs from the original - WARNING - VERIFY ERROR.
Same as previously, works on any KERNAL and allows you to write protected programs (Micruscopy 1 - 3 and Tape Protector v1.5).
Insert the tape in the recorder and load the program. Once it's loaded, an attempt will be made to write onto disk. If you haven't selected the UNLOCK option, the size of the saved file depends on whether it has been classified as protection-free - PROTECTED NONE. Incomplete read of the buffer will extend the file by about 2 units and add it to the saved file. If the buffer has been read properly and isn't protected, the program itself will be written. Otherwise, the recorder buffer and the program supporting the saved file will be added. Selecting UNLOCK will allow for an attempt to remove protection, if applicable. The write won't always be possible, especially when the protection removal program has been misread. In this case, you can decide how to save the file.The menu Unknown protection will appear allowing for:
HEX PREVIEW:
$0350 - content of the tape recorder buffer,
$0801 - removal protection program,
BACK - return to the previous menu,
SAVE (NORMAL) - saving without the tape recorder buffer,
SAVE (SECURE) - saving with the tape recorder buffer and the program supporting it,
CANCEL - cancel saving and copying.
If you abort loading during loading of the program data by pressing RUN/STOP, STOP on the tape recorder or stop loading via software (reason for this is usually deleting the program), you can save information about the recording. This message also appears in the case of a misread - LOAD ERROR. The menu enables you to:
SAVE INFORMATION - saves the first line of the program and the address of the end of the file being loaded.
Example:
10 SYS2016
0 PRINT"37635"
CANCEL - cancel copying.
The file will be saved under the same name as the one on the tape with the size of one unit. This option is useful when the desired file is required and is probably stored on another disk to complete the games or programs contained on this tape. Knowing the first line of the program and the address of the end of loading, you can quickly check whether a file in another tape is the one you're looking for.
When writing onto disk, there may appear the following error messages:
DEVICE NOT FOUND - selected device hasn't been found because its power supply has been disconnected; run the device, wait for a moment and try saving again,
INSERT DISK / DRIVE NOT READY - disk not found, insert disk you wish to save your file on,
DISK FULL - disk doesn't have enough available space to store the file, insert another drive or change its image to the next.
FILE EXISTS - there is already a file with that name. This submenu includes the following options:
RENAME - files cannot share the same name,
New submenu will be displayed, including the following options:
CURRENT - current file name,
NEW - new (changed) file name,
SAVE - saving the file under new name,
CANCEL - preturn to the menu FILE EXISTS.
To change the name, select New, press RETURN, type in the name and once again confirm by pressing RETURN.
OVERWRITE - replace the existing file with a new one,
CANCEL - return to the recorder menu.
Saving works on any KERNAL. You will see the same menu as described at the beginning of this section. Once the file has been successfully read, press PLAY & RECORD on the tape recorder - SAVING - PRESS RECORD$PLAY ON TAPE. Pressing RUN/STOP will produce the same effect as described in Section 6.1.
During copying, the following error messages may appear: FILE NOT FOUND or INCORRECT INITIAL ADDRESS.
Menu with 4 following options will also be displayed:
RETRY - try to re-read the file,
SKIP - skip this file,
SKIP ALL - skip all files that cannot be copied or haven't been found,
CANCEL - cancel copying and return to the drive menu.
The RETRY option is disabled when the starting address is smaller than 2048. Once copying is done, you will be asked to press STOP on the tape recorder.
If you have selected the saving option with verification, you will be asked to reset the counter press RECORD & PLAY - SAVING - RESET TAPE COUNTER AND PRESS RECORD&PALY ON TAPE.
After successfully saving the file, rewind the tape back to the counter position 000 and press PLAY - VERIFYING - REWIND TAPE TO 000 AND PRESS PLAY ON TAPE.
Write or verification failure is indicated by the same messages as described in Section 6.1.
After selecting the files, they will be read and saved on the disk. As in the previous sections, the same error messages may appear.
- Select the files you want to be copied.
- Press F3 and set the TARGET DEVICE to the same number as the one you're reading from (8-11).
- Select BEGIN COPYING.
- You will receive a message informing you of inserting the source disk - i.e. the one you want to copy from - and the option to continue by pressing RETURN or abort the procedure by pressing RUN/STOP - INSERT THE SOURCE DISK TO THE DRIVE X. PRESS RETURN TO CONTINUA OR RUN/STOP TO CANCEL.
- Read will start. Afterwards, you will be asked to insert the target disk and confirm or cancel the write - INSTERT THE TARGET DISK TO THE DRIVE X. PRESS RETURN TO CONTINUA OR RUN/STOP TO CANCEL.
During reading and writing, there may occur error messages, as described in subsections 6.2 and 6.3.
|
Reset
| |
|
Zakończenie pracy dowolnego programu w celu załadowania od nowa systemu operacyjnego.
Stosuje się go w przypadku zawieszenia komputera jak i wówczas gdy program lub gra uniemozliwia powrót do BASICa. | |
| | |
zamknij
|
LOAD
| |
|
Polecenie to służy do wczytania programu z taśmy lub dyskietki do pamięci komputera tak, aby móc z niego korzystać.
Wpisanie samego polecenia LOAD powoduje wczytanie z magnetofonu pierwszego napotkanego programu. Dodanie za tym
napisem nazwy programu ujętej w cudzysłów powoduje poszukiwanie programu o danej nazwie. Po nazwie można dodać
jeszcze przecinek i liczbę. Liczba ta określa numer urządzenia, z którego należy wczytywać program.
Jeżeli nie podano numeru urządzenia komputer przyjmuje domyślną wartość 1, oznaczającą magnetofon. Innym
urządzeniem zazwyczaj wykorzystywanym jest stacja dysków, której odpowiada numer 8.
LOAD Odczytuje pierwszy program z taśmy.
LOAD "HALO" Szuka na taśmie programu nazwanego HALO i jeśli go znajdzie, wczytuje go do pamięci.
LOAD A$ Szuka programu o nazwie określonej zmienną A$.
LOAD "HALO",8 Szuka programu nazwanego HALO na dyskietce.
LOAD "*",8 Wczytuje pierwszy program na dyskietce.
Jeżeli program (zazwyczaj w kodzie maszynowym) ma być wczytany w określone miejsce w pamięci należy dodać tzw.
parametr wtórny równy 1.
LOAD "K/M PROG",1,1 Wczytuje program z magnetofonu bez przemieszczania go w pamięci.
| |
| | |
zamknij
|
SAVE
| |
|
Polecenie to zapisuje program znajdujący się w pamięci komputera na taśmę lub dyskietkę. Wpisanie tylko SAVE i naciśnięcie klawisza RETURN spowoduje zapisanie programu na taśmę. Komputer nie ma możliwości sprawdzenia co znajduje się na te taśmie; więc należy uważać aby nie skasować poprzednich programów.
Jeżeli za słowem SAVE podano nazwę programu ujętą w cudzysłów lub zmienną łańcuchową, komputer nada tę nazwę
zapisywanemu programowi, co ułatwi potem odnalezienie tego programu.
Za nazwą programu można podać numer urządzenia, na które program ma być zapisany oraz kolejny przecinek i paramet
wtórny. Wartość 1 parametru wtórnego oznacza, że zapisywany właśnie program będzie wczytywany w to samo miejsce w
pamięci, które zajmuje obecnie. Podanie liczby 2 powoduje zapisanie znacznika końca taśmy (End-Of-Tape marker). Gdy
podczas szukania innego programu komputer spotka ten znacznik poszukiwanie zostaje przerwane i pojawia się komunika
FILE NOT FOUND (programu nie znaleziono). Można też podać wartość 3 oznaczającą jednocześnie koniec taśmy i znacznik
wczytywania programu w to samo miejsce.
SAVE Zapisuje program bez nazwy na taśmę.
SAVE "HALO" Zapisuje na taśmę pod nazwę HALO.
SAVE A$ Zapisuje na taśmę pod nazwą określoną w A$.
SAVE "HALO",8 Zapisuje na dyskietkę.
SAVE "HALO",1 ,1 Zapisuje na taśmę pod nazwą HALO i z zaznaczeniem, że program będzie wczytywany w to samo miejsce pamięci.
SAVE "HALO",1,2 Zapisuje na taśmę pod nazwą HALO i ze znacznikiem końca taśmy.
SAVE "HALO",1,3 j/w z zaznaczeniem wczytywania w to samo miejsce w pamięci.
| |
| | |
zamknij
|
VERIFY
| |
|
Polecenie to służy do sprawdzenia poprawności ostatniego zapisu programu. Porównuje ono zawartość wskazanego zapisu
z zawartością pamięci komputera.
VERIFY Porównuje z najbliższym programem na taśmie.
VERIFY "HALO" Szuka na taśmie programu HALO i porównuje go z pamięcią.
VERIFY "HALO",8 Szuka na dyskietce programu HALO i porównuje go z pamięcią.
Jeżeli pokaże się komunikat VERIFY ERROR, oznacza to błąd przy zapisie. Należy program zapisać ponownie. Błąd ten
powstanie też jeżeli po zapisie została zmieniona jakakolwiek linia programu lub komórka pamięci.
| |
| | |
zamknij
|
DATA
| |
|
Po tej komendzie wypisane są dane, które będą odczytywane komendą READ. Dane te mogą być liczbami albo łańcuchami oddzielonymi od siebie przecinkami. Łańcuchy znaków nie muszą być ujęte w cudzysłów o ile nie zawierają
znaków spacji, przecinków lub dwukropków. Jeżeli nic nie jest wpisane między kolejnymi przecinkami komenda READ wczyta zero jako liczbę lub pusty łańcuch.
DATA 12, 17, "RAZ, DWA", 3.14, JANUSZ
| |
| | |
zamknij
|
POKE
| |
|
Po komendzie POKE zawsze następują dwa parametry. Pierwszy określa miejsce w pamięci (adres), natomiast drugi
wartość (0-255). Komenda POKE powoduje wpisanie w dane miejsce pamięci określonej wartości.
10 POKE 53281,0
20 S=4096*13
30 POKE S+29,8
| |
| | |
zamknij
|
READ
| |
|
Komenda READ przyporządkowuje kolejnym zmiennym dane pobrane z linii z komendą DATA. Należy zwrócić uwagę, aby
READ nie odczytał zmiennej znakowej, gdy oczekuje na liczbę, gdyż spowoduje to wystąpienie błędu.
| |
| | |
zamknij
|
RETURN
| |
|
Komenda ta działa w połączeniu z komendą GOSUB. Gdy program dojdzie do tej komendy, następna wykonana będzie
kolejna instrukcja po ostatnio realizowanej komendzie GOSUB. Jeżeli nie było przedtem komendy GOSUB pojawi się błąd
RETURN WITHOUT GOSUB ERROR.
| |
| | |
zamknij
|
TURBO
| |
|
Znacznie szybszy system odczytu lub zapisu pozwalający na zmieszczenie większej ilości danych na kasecie.
| |
| | |
zamknij
|
ROM-BIT przedstawia Black Box V9
| |
|
| |
| | |
zamknij
|
RUN
| |
|
Polecenie to powoduje wykonywanie programu znajdującego się w pamięci. Jeżeli po tym poleceniu nie wpisano żadnego
numeru linii program rozpocznie się od linii o najniższym numerze. Podanie numeru powoduje rozpoczęcie programu od
wskazanej linii.
RUN Rozpoczyna wykonywanie programu od pierwszej linii.
RUN 50 Rozpoczyna wykonywanie programu od linii 50
RUN X Pokaże się napis UNDEF'D STATEMENT ERROR. Należy zawsze podać liczbę określającą numer linii, a
nie zmienną.
| |
| | |
zamknij
|
SYS
| |
|
Po komendzie SYS należy podać liczbę lub wyrażenie z zakresu od 0 do 65535. Jest to wywołanie programu napisanego w
kodzie maszynowym. Od funkcji USR różni się tym, że nie pozwala na przekazywanie parametrów.
| |
| | |
zamknij
|
REM
| |
|
Komenda REM służy do umieszczania w tekście programu komentarzy odnośnie danej linii, czy też całego programu.
Można po tej komendzie wpisać dowolny ciąg znaków. Wszystkie znaki znajdujące się za komendą REM są ignorowane przez komputer.
Uwaga: Ignorowany jest także dwukropek, tak więc za tą komendą nie można już dodać w tej linii żadnej innej komendy.
| |
| | |
zamknij
|
GOTO lub GO TO
| |
|
Napotkanie przez program komendy GOTO powoduje przejście do linii programu oznaczonej liczbę po tej komendzie.
| |
| | |
zamknij
|
GOSUB
| |
|
Komenda ta działa podobnie jak komenda GOTO, z tym, że komputer pamięta numer linii, w którym ona wystąpiła. Jeżeli
napotkana potem będzie komenda RETURN, program powróci do następnej instrukcji po GOSUB. Komenda ta jest przydatna
gdy chce się z różnych miejsc w programie wywoływać ten sam ciąg instrukcji.
10 GOSUB 100: PRINT "PIERWSZY RAZ"
20 GOSUB 100: PRINT "DRUGI RAZ"
30 END
100 PRINT "ALA MA ASA":RETURN
| |
| | |
zamknij
|
OPEN
| |
|
Komenda OPEN pozwala C 64 na dostęp do urzadzeń jakimi są: stacja dysków, drukarka czy nawet ekran. Po słowie OPEN należy podać liczbę (0-255), określającą numer otwieranego zbioru, oraz numer urządzenia.
Numery urządzeń:
- Klawiatura
- Magnetofon
- Ekran
- Drukarka
- Dysk
Po numerze urzadzenia czasem należy podać tzw. parametr wtórny. W przypadku stacji dysków numer ten określa, który
kanał ma być wykorzystany do przesyłania danych. W przypadku drukarki określa dodatkowe parametry druku np. pismo
powiększone.
OPEN 1,0 Otwiera dostęp do ekranu
OPEN 2,8,2,"D" Otwiera do czytania zbiór D na dysku
OPEN 3,4 Otwiera dostęp do drukarki
OPEN 15,8,15 Otwiera kanał poleceń dla dysku.
Więcej informacji na temat obsługi zbiorów znajduje się w instrukcji obsługi Commodore 64 w Dodatku S.
| |
| | |
zamknij
|
PRINT
| |
|
Komenda PRINT jest jedną z pierwszych komend, które poznaje się podczas nauki języka BASIC. Za komendą PRINT
mogą znajdować się:
- łańcuch znaków ujęty w cudzysłów,
- nazwa zmiennej,
- funkcja lub wyrażenie matematyczne,
- znak formatujący wydruk.
Znaki formatujące wydruk to przecinek (,) lub średnik (;). Przecinek powoduje wyświetlenie napisu w najbliższej z czterech stref o szerokości 10 znaków, natomiast średnik powoduje wyświetlenie napisu bezpośrednio za poprzednim. Każdy z tych znaków może znajdować się na końcu linii. Ma on wtedy wpływ na następną komendę PRINT w programie.
10 PRINT "HALO"
20 PRINT "HALO" A$
30 PRINT A+B
40 PRINT J;
50 PRINT A,B,C,SIN(D)
Patrz także: funkcje POS, SPC, TAB.
| |
| | |
zamknij
|
PRINT#
| |
|
Istnieje kilka różnic między PRINT a PRINT#. Po komendzie PRINT# występuje numer określający zbiór, do którego mają
być zapisywane dane. Zbiór, do którego chce się coś zapisać musi być przedtem otwarty komendą OPEN. Przecinek i średnik mają taki sam efekt jak przy komendzie PRINT. Niektóre urządzenia mogą nie interpretować odpowiednio funkcji TAB i SPC.
10 PRINT#1, "WARTOSCI DANYCH:";A%,B1,C$
| |
| | |
zamknij
|
NEW
| |
|
Polecenie to usuwa z pamięci program i wszystkie zmienne, które były używane. Program przepadnie jeżeli nie był zapisany poleceniem SAVE. NALEŻY BYĆ OSTROŻNYM GDY UŻYWA SIĘ TEGO POLECENIA.
NEW może być użyte także jako komenda w linii programu. Gdy program dochodzi do linii zawierającej tę komendę, zostaje usunięty z pamięci.
| |
| | |
zamknij
|
CLR
| |
|
Komenda ta usuwa z pamięci komputera wszystkie zmienne, a pozostawia tylko program. Komenda ta jest wykonywana
automatycznie po wydaniu polecenia RUN.
| |
| | |
zamknij
|
LIST
| |
|
Polecenie LIST pozwala na obejrzenie linii programu BASIC znajdujących się w pamięci komputera. Można przeglądać cały program lub jego wybrany fragment.
LIST Pokazuje cały program.
LIST 10 - Pokazuje linie od 10 do końca.
LIST 10 Pokazuje tylko linię 10.
LIST - 10 Pokazuje linie od początku do linii 10.
LIST 10 - 20 Pokazuje linie od 10 do 20.
| |
| | |
zamknij
|
IF ... THEN
| |
|
Komenda ta pozwala wykonać jakieś działanie jeżeli spełniony jest warunek określony po słowie IF. Może to być dowolna komenda języka BASIC. Warunek może być porównaniem dwóch wyrażeń (porównanie operatorami = < > <= >= <>), lub pojedynczym wyrażeniem matematycznym. W drugim przypadku warunek jest spełniony gdy wyrażenie jest różne od zera. Można łączyć kilka warunków operatorami AND i OR lub stosować negację NOT.
IF X>10 THEN END
IF Y THEN PRINT "Y JEST ROZNE OD ZERA"
IF NOT Z AND (X>7) THEN 30
Podanie samej liczby po THEN w ostatnim przypadku jest równoznaczne z komendš GOTO 30.
| |
| | |
zamknij
|
FINAL III - PULL-DOWN MENU - DESKTOP
| |
|
| |
| | |
zamknij
|
FINAL III - PULL-DOWN MENU - BASIC
| |
|
| |
| | |
zamknij
|