RUN TIME ERRORS The following messages are generated when your AMOS program encounters an error as it is running, AMOS will then abort your program and highlight the current instruction. Once you return to the editor, the cursor wull be placed immiediately at the offending line. If you are using error trapping,you may wish to obtain the error message associated with a particular number. Use line like: Error Errn Each run time error has its own error number which is listed below. A special FOLLOW command can also be used to see how your variables are changing during the running of your program. The FOLLOW commands are listed here: FOLLOW (View the state of one or more variables) FOLLOW [list of expressions...] with your program screen. You can move the window up and down the display using the up and down arrow keys. Any folded proceedures will not be followed by the system,allowing you to simply follow the proceedure or routine that needs inspecting. FOLLOW OFF This command clears any previous FOLLOW instructions and removes the FOLLOW window from the display. ANIMATION STRING TOO LONG (113):The current AMAL program is longer than the maximum of 65536 bytes.Try splitting your program into smaller units.Its quite acceptable to animate the object using several AMAL channels. ADDRESS ERROR (25):This will occur when an address is used in DOKE,DEEK,LOKE,or LEEK command that is an odd value Array already dimensioed (28):You have attempted to dimension an array twice in your program.Usually this will be detected in the syntax check, but if your program is a complex one it will only be discovered when you actually attempt to redimension the array. AUTOTEST ALREADY OPENED (111):An AMAL autotest has been defined inside another autotest command.This is of course not allowed. BAD IFF FORMAT (30):Youve tried to use LOAD IFF to load a file which has been stored in an unusual format. Remember that LOAD IFF can only load screens into memory ,NOT general purpose IFF files. BANK ALREADY RESERVED (35):You have attempted to create a memory bank which already exists.Note that banks 1 to 4 are normally used to hold your sprites,icons,music and menu definitions respectively. BANK NOT RESERVED (36):This error indicates that the bank you have selected has not been created using RESERVE.It can also occur after commands like PASTE ICON or SAMPLAY which automatically load information from a specific memory bank. BLOCK NOT FOUND (65):The block you specified in this in instruction has not been created with GET BLOCK. BLOCK NOT DEFINED(68):The bob you attempted to manipulate has not been set up using a previous Bob command.This error can occur after a mistake in a PASTE BOB instruction. BORDERED WINDOWS NOT ON EDGE OF A SCREEN (59):You cant position a bordered window at the edge of the screen.You must leave at least eight pixels between the window and the screen so as to provide space for the border. CAN'T FIT PICTURE IN CURRENT SCREEN (32):You attempted to load a picture into an existing screen with LOAD IFF,but the two screens are not of the same type.Tag the number of the destination screen to the LOAD IFF command like so: Load Iff "filename",number Providing the screen you specified in number is in the correct range (0-7),AMOS will automatically create a screen of the requuired type during the loading process. CAN'T RESUME TO A LABEL (4):You cannot resume to a label in an error proceedure. CAN'T SET DUAL PLAYFILD (70):You tried to create dual playfield using the wrong sort of screens.See the section DUAL PLAYFIELD command for a list of the allowable combinations. COPPER LIST TOO LONG(77):As a default,your user-defined copper list is limited to a maximum of 12k.This may be extended using an option from the CONFIG accessory. COPPER NOT DISABLED (76):You've attempted to use the COP MOVE or COP SWAP commands without first disabling the normal copper list with COPPER OFF. DEVICE NOT AVAILABLE (86):The disc or device you specified in the instruction is not connected to the Amiga.This error is often caused by an unexpected disk change. The solution is to set the directory to the actual drive name using a line like: Dir$="Df0:" If this occurs when using the file selector,click on one of the drive buttons such as "Df0:" and change the directory using the setdir button. DIRECTORY NOT EMPTY (85):Its only possible to erase empty directories with KILL. DIRECTORY NOT FOUND (80):The required directory cannot be found on the current disk.Perhaps you have inserted the wrong disk?(You thick twat !) DISK FULL (88): There is no more space on the current disk to hold your data. DISK IS NOT VALIDATED (83): Whenever you insert a disk the Amiga automatically checks for its validity.If an error occurs within this process you will get this message.Due to the complexities of the Amiga the validation errors are occasionally generated by mistake. If the problem persists you may need to use the DISK DOCTOR program from the standard workbench disk. This error can occur if you kick the plug out of the wall and invalidate the hard disk!. DISK IS WRITE PROTECTED (84):AMOS cannot save out information if the disk is physically protected so slide the write protect tab or use another disk . DIVISION BY ZERO (20):You have attempted to divide a number by zero. This is not allowed in any Basic. END OF FILE (100):The end of the current file has been unexpectedlly reached during a disk access.Use the EOF function to test for this condition inside your program. END OF PROGRAM (10):This message is printed after after AMOS executes the last instruction in your program. ERROR NOT RESUMED (3):You exited from an error handling routine without resetting the error using RESUME. ERROR PROCEEDURE MUST RESUME TO END (8):You cannot exit from an error handling proceedure with END PROC.you must use one of the special RESUME commands instead. OUT OF STACK SPACE (0): This error is generated when you try to nest too many proceedure calls inside each other. AMOS proceedures can call themselves (recursion),but you'll get an error after about 50 loops. FILE ALREADY EXISTS (79): It is not possible to RENAME a file to an existing or directory on a disk. FILE ALREADY OPENED (96) : An attempt to access a file with OPEN or APPEND has been aborted because its already open. struction instead. FILE IS PROTECTED AGAINST DELETION (89):The Amigas disk system lets you protect individual files from deletion using the PROTECT command from CLI.You have probably attempted to erase an important system file with delete. FILE IS PROTECTED AGAINST READING (91): The requested file has been protected against reading. See the Amiga users guide which came with your computer for full details of the PROTECT command which is available from CLI. FILE IS WRITE PROTECTED (90):You can't alter the selected file because its been intentinally locked with the PROTECT command from CLI FILE NOT FOUND (81): You tried to access a file or directory which does not exist in the current directory. FILE NOT OPENED (97): Your program has attempted to transfer data to or from a file which has not been previously opened using OPEN IN,OPEN OUT,APPEND and so on FILE TYPE MISMATCH (98): A disk command has been used which is not allowed on the current file.This error would occur if you were to use the GET and PUT commands to access a sequential file. FLASH DECLARATION ERROR (52): You have made a mistake in the animation string used to define a colour sequence with FLASH. FONTS NOT EXAMINED (37):Before using the SET FONT command,you must first create a list of the available fonts using either GET FONTS,GET DISK FONTS,or GET ROM FONTS. I/O ERROR (94): One of your files may be corrupted and cannot be accessed correctly.If the problem persists you may need to use DISK DOCTOR from CLI (Diskdoctor is on your workbench disk ) IFF COMPRESSION NOT RECOGNISED (31): The screen you wish to load from the disk uses an unfamiliar compression system. If possible return to the graphics package you used to produce this screen and save it as standard IFF format. ICON NOT DEFINED (74):The icon you specified in your instruction cannot be found in the current icon bank (bank 2) ILLEGAL BLOCK PARAMETERS (66): There's been a mistake in either a GET BLOCK or PUT BLOCK command.The values you have entered are not allowed. ILLEGAL COPPER PARAMETER (78): The values you have entered in a COP MOVE,COP MOVEL or COP SWAP instruction lies outside the permitted range. ILLEGAL FILE NAME (82): You have attempted to use a filename which does not comply with the standard naming conventions.Refer to your Amigas user guide. ILLEGAL FUNCTION CALL (23): This error is produced if you make a mistake when entering values into an AMOS command. Check the relevant section of the user manual for a full list of the allowable parameters ILLEGAL INSTRUCTION DURING AUTOTEST (115): You have used an AMAL command such as Move or Anim inside an AUTOTEST.Check the case of your AMAL labels. You may have defined an AUTOTEST by mistake. ILLEGAL NUMBER OF COLOURS (49):The Amigas hardware only supports certain combinations of colours on screen at once.See the chapter on SCREENS for a full list of available option.You have probably made a typing error in the SCREEN OPEN command. ILLEGAL SCREEN PARAMETER (48): The dimensions you specified with SCREEN OPEN are unacceptable. The minimum screen size is just 32x8 and the maximum depends entirely upon the amount of available chip memory. ILLEGAL WINDOW PARAMETER (60): You've entered an incorrect value in one of various window commands. INPUT TOO LONG (99):An input string is too long for a previously dimensioned variable.Or you may have tried to INPUT# a line of more than 1000 characters. INSTRUCTION ONLY VALID IN AUTOTEST (112):The direct or eXit commands can only be used inside an AMAL AUTOTEST. JUMP TO/WITHIN AUTOTEST IN ANIMATIN STRING (110): It's illegal to jump directly inside an AUTOTEST from your main AMAL program ,use the eXit or direct commands instead. LABEL ALREADY DEFINED IN AN ANIMATION STRING (109): AMOS has encountered two versions of the same label definition in your AMAL program.Remember all labels consist of just a single UPPER case letter. LABEL NOT DEFINED (40):The label included in your instruction has not been defined in your program. Check for mistakes in computed GOTOs,GOSUBs or RESTORE statements. LABEL NOT DEFINED IN ANIMATION STRING (114): This error is generated when you attempt to jump to a non existent label in an AMAL animation string. MENU ITEM NOT DEFINED (39):The item you have specified in your menu command has not been defined previously using MENU$. MENU NOT OPENED (38):The MENU ON command has been called but there is no menu.You will need first to define your menu using the MENU$ instruction or MAKE MENU BANK. NEXT WITHOUT FOR IN ANIMATION STRING (108): This indicates a mistake in one of AMAL animation strings. Each next command needs to be associated with a single FOR statement.Check the case of any comments in your AMAL program. NO ON ERROR PROC BEFORE THIS INSTRUCTION (5):RESUME LABEL is only allowed after an ON ERROR PROC command. NO DATA AFTER THIS LABEL (41): RESTORE has tried to move the data pointer which does not include any DATA statements. NO DISK IN DRIVE (93): You've tried to access a drive which does not appear to contain a disc.If you have just inserted a disk,wait a couple of momennts and try again. NO PROGRAMS BELOW CURRENT PROGRAM (43): If the program running is not installed as an accessory and you try to BGRAB a bank you'll receive this error. NO ZONE DEFINED (73): Before using SET ZONE,you must first allocate some memory with RESERVE ZONE. NON DIMENSIONED ARRAY (27): Your program has tried to refer to an array which has not previously been defined. NOT AN AMIGADOS DISK (92): Unless your using a program like Crossdos, AMOS can only read disks that were created on the Amiga.So PC and ST(YUK!) disks would create such an error. OUT OF DATA (33): The READ command has read past the last DATA item in your program. You have probably missed out some information when you were entering one of your data lines.Also check for any RESTORE commands for typing errors. OUT OF MEMORY (24): This is a standard error message which is generated when you attempt to exceed the available storage space.DON'T PANIC ! There are three different ways of conserving memory 1> CLOSE WORKBENCH turns off the Amigas workbench system to free 40k. 2> CLOSE EDITOR deactivates the editor window when its not being used...saves 24k! 3>If the information line reports there is plenty of spare memory,then save your program and reboot.This will correct a memory fragmentation problem caused by the Amigas operating system. OUT OF VARIABLE SPACE (11): As a default,AMOS only allocates 8k of storage space for your strings and arrays.Use SET BUFFER command at the start of your programto increase this as required. OVERFLOW (29): The result of a calculation has exceeeded the maximum size of the variable POP WITHOUT GOSUB (2): POP can only be executed within a subroutine which was previously entered with GOSUB.Use POP PROC to exit from a proceedure. PROGRAM INTERRUPTED (9):This is not an error:you've probably simply pressesd the cntrl-C keys or used a stop instruction to exit directly from your program. PROGRAM NOT FOUND (42):The program named in the PRUN command has not been previously loaded into the Amiga's memory.Use LOAD OTHER from the menu window. RETURN WITHOUT GOSUB (1):RETURN can only be used once to exit from a subroutine which was originally entered using GOSUB. RAINBOW NOT DEFINED (75):Before calling the RAINBOW command in one of your programs,you must first define your rainbor effect with SET RAINBOW. RESUME LABEL NOT DEFINED (6): The label you specified in the RESUME command does not exist. RESUME WITHOUT ERROR (7): The RESUME command cannot be executed unless an error has occurred inyour program .Its best used to exit back to AMOS BASIC after an error. SCREEN ALREADY IN DOUBLE BUFFERING (69): You've attempted to call DOUBLE BUFFER twice on the same screen. SCREEN NOT IN DUAL PLAYFIELD MODE (71): DUAL PRIORITY can only be used after you've created a dual playfield. SCREEN NOT OPENED (47): The screen you have attempted to access has not previously been openedusing the screen command. SCREENS CAN'T BE ANIMated (67):AMAL can only move or scroll screens.It is not possible to anmate them using the built in ANIM command. SCROLLING ZONE NOT DEFINED(72):Before using the SCROLL comand, you need to define the direction and size of your scrolling area with SET SCROLL. SHIFT DECLARATION ERROR (53):You've made a mistake in the colour sequence used in the SHIFT UP or SHIFT DOWN instructions. SPRITE ERROR (105): The values you've entered in into a sprite command do not fall within the requuired limits. STRING TOO LONG (21): Astring has exceeded the maximum of 65000 characters which is allowed under AMOS basic. SYNTAX ERROR IN ANIMATION STRING (107):Theres been a mistake in the animation sequence you specified using the Anim command.Check for typing errors.Its all too easy to accidently enter a full stop"." instead of a comma"," by mistake THIS WINDOW HAS NO BORDER (63):You have used the BORDER COMMAND on a window which has no border. TOO MANY COLOURS IN FLASH (51):You've exceeded the maximum of 16 colour changes in a single FLASH command. TYPE MISMATCH (34): An illegal value has been assigned to a variable.For example: A$=12 Should read A$="12" VALID SCREEN NUMBERS RANGE FROM 0 TO 7 (50):AMOS only allows you to open a maximum of 8 screens at any one time. WINDOW ALREADY OPENED (55): An attempt to open a window has failed because it was already open. WINDOW NOT OPENED (54): You have attempted to open a window that does not exist. WINDOW TOO LARGE (57): The requested window cannot be opened because it is too big to fit in the current screen. WINDOW TOO SMALL (56):The requested window is too small .The minimum window size is 3x3