Features
The following are new features and enhancements of AMOS MK-II over AMOS Professional.
This list will be updated on a regular basis.
The AMOS MK-II editor – click to enlarge
up to 10×faster, even uncompiled
Full AGAgraphics support
Modern editorwith clipboard and syntax highlighting
Editor
- Editing is adapted to modern editor usage:
- Moving the cursor right at the end of a line moves it to the beginning of the next line.
- Moving the cursor left at the beginning of a line moves it to the end of the previous line.
- BACKSPACE at the beginning of a line joins it with the line above.
- DELETE at the end of a line joins it with the next line.
- CTRL+SHIFT+BACKSPACE jumps to the previous change position (the last 32 changes are saved).
- Cut, copy and paste via CTRL+X/C/V. Copied text can be exchanged with other Workbench tools (
clipboard.deviceis used) and even with your OS when using an emulator (WinUAE clipboard sharing is supported).
- The
.amos2suffix is added automatically when saving a file. - Files can now be saved as ASCII files without marking a block.
- File Load automatically recognizes the new
.amos2format and ASCII files. - The text buffer is enlarged automatically when needed. There is no need to set a buffer size manually.
- Syntax highlighting: commands, comments, variables and strings are color-highlighted.
- Invalid code lines are highlighted automatically (in red).
- When testing finds an error, the cursor is placed directly on the offending command (if there are multiple commands on that line) instead of at the beginning of the line.
Language
- Performance boost: up to 10 times faster (uncompiled), with many commands now running as fast as compiled AMOS Professional!
- Variables now have to be initialized before use. Using an uninitialized variable throws an error.
- Variable names may now begin with a reserved word, e.g.
PRINTER=1. - Variables can now be byte or word sized:
X.B=10,X.W=300, etc. Long variables are automatically shortened to their default:X.L=12345678becomesX=12345678. - The one-line form
If...Thenis now possible inside a nestedIf...End If. REMs afterDATAare now possible.- Procedure return values can now be accessed directly like those of any other function. No more calls to
PARAM/PARAM$/PARAM#. The procedure's name determines the return value's type (use$or#for strings and floats). - Floating point numbers are IEEE single precision (7 decimal places, range from 1E-38 to 3E38). No math library is needed, and an FPU is supported if installed.
Rndnow creates repeatable random numbers when the same seed is used withRandomize. (In AMOS Professional this only worked when you gaveRnda negative number (!), an oddity that was not mentioned in the manual.)Clsresets the cursor position to 0,0.- NEW:
Select...Case(includingDefaultcase, of course). Looks a bit cleaner than theIf...Else Ifconstruct - and it's slightly faster.
Input
Hide OnandShow Onremoved. No more counting of how many times the mouse cursor was hidden or shown. What was the idea behind that, anyway?
Screens
SCREEN OPENopens a screen with a black background and white text color. No flashing colors, no cursor.- The
DEFAULTcommand has been removed. If you really need AMOS's default screen, type this:
Screen Close : Screen Open 0,320,200,16,Lowres : Cls 1 : Pen 2 : Paper 1 SCREEN CLOSE(without a screen number) closes all screens at once.- Bug fix: screens with a very small width (e.g. 100 pixels) are no longer distorted.
Graphics
- Full AGA support.
Ink: sets the same values asPenandPaper.- New command:
Border, if you want to set the border colour for Bars and Polygons, instead of usingInk. Turning borders on/off is now done withSet Border On/Set Border Off. - New command:
Arcdraws a part of a circle.
Text
STR$no longer inserts a space before the converted string. That always bugged me. It's the little things in life… :)
Extensions
- Extensions still have a slot number, but installation is easier. Just add them in the settings menu, MK-II will know what to do with it.
- The commands of AMOS MK-II are a bunch of extensions, too. No more amos.library.
- Loading .amos2 files with missing extensions show a string instead of the commands stating the name and slot of the missing extension, so that you instantly know, which extension you have to install. No more guessing games.
- New extensions are easier to write (a detailed example is provided in the Misc folder). The old system was a bit complicated - so no more need to write the label table (manually - if you are crazy enough or have nothing else to live for in your life - or with the MAKE_TABLE.amos tool).