Amos - Aros_Vision

Direkt zum Seiteninhalt
Documentation > Developer

Reference of Amos Pro
All standard commands and included extensions
AMOS Language
Tutorials:
Important Websites:
Sources:


Reference of AMOS Pro Extensions
AMOS Pro Manual
TOME
AMCAF
Turbo
Personnal
Intuition Andrew Church
CRAFT
MusicCraft
JD
intuiextend
GUI
P61
Game Extension

Reference of Aros Vision 68k TOME
Map Do x,y
draws area of the map onto current screen
Map View x1,y1 To x2,y2
defines area of the screen to be used for displaying maps
Map Left x,y
Map Right x,y
Map Top x,y
Map Bottom x,y
redraw 1 edge of map area
Tile Size x,y
either 16 or 32 pixels
Map Plot t,x,y
changes coordinates of map
=Map Tile(x,y)
returns tile number at coordinate
=Tile Val (x,y,n)
returns value of tile at coordinate using the values in tile val list n
=Map X
=Map Y
return x and y size of map in tiles
Map Paste x,y,px1,py1 To px2,py2
combines map view and map do
Map Bank b
normally bank 6 is used and can be changed (to use different maps)
Map Brik n,x,y
as map plot but places brik number n
=Briks
returns number of briks stored in current bank
=Brik X(n)
=Brik Y(n)
returns size of brik number n
Brik Bank b
changes brik bank (default 7)
=X Tile (px)
=Y Tile (py)
translates pixel coordinates in tile coordinates
=Map Pos X(px)
=Map Pos Y(py)
as above but usable for Map Plot and so on
List Tile
displays tiles bank on current screen
Map Update On
Map Update Off
switches map update on and off
Map Update x,y
performs map update
Map Anim n,x,y,r,d,anim$
sets up tile animation
Map Anim On
Map Anim Off
Animations on off
Map An Freeze n
Map An Unfreeze n
temporarily freezes animation n
=Map An Point(n)
returns number of frame in animation on screen
Map An Move n,x,y
change position of animation
=Map An At(x,y)
returns anim at coordinate
Map Anim Bank bank,n,a
reserves bank for map update list
=Map Ab Length(n,a)
returns correct length required for a bank
=Map Length(x,y)
returns file length of a map x X y tiles
=Map Scan X(t,x1,y1 To x2,y2,mode)
=Map Scan Y(t,x1,y1 To x2,y2,mode)
returns x and y coordinate of tile that you search for
=Map HX(x)
=Map HY(y)
result of x div tile size
=Map FX(x)
=Map FY(y)
x mod tile size
Tile Type Bank b
changes bank for tile values
=Tme Credit$
returns credits
=Tme Ver$
returns tome version
=Map Base
base address of data table
=Map Check
scans and checks if tiles are available
Map Handle screen,x,y
nicemap-routine
Map Handle Init
init internal variables
Tiny Map x,y,size
simple version of map do
Tiny Bank n
bank 10 normally
Map Fall n
scans entire map and let tiles fall and replaces by n
Map Swap Tile t1,t2
replaces tiles
Tile Tag Set tile,n
monitors map
=Tile Tag
returns bitmap of 8 tile tags
=Tile Tag X(n)
=Tile Tag Y(n)
returns coordinate where tile with tag n last spotted
Tile Tags On
Tile Tags Off
=Tile Count(t)
=Map Zb Length(n)
Map Set Zone zone,x1,y1 To x2,y2
like set zone but x,y in tiles
=Map Zone(x,y)
coordinate in map zone
Reference of Aros Vision 68k AMCAF

Bank Commands
BANK PERMANENT
instruction: make a memory bank permanent
Bank Permanent bank number
BANK TEMPORARY
instruction: make a memory bank temporary
Bank Temporary bank number
BANK TO FAST
instruction: move a memory bank to fast ram
Bank To Fast bank number
BANK TO CHIP
instruction: move a memory bank to chip ram
Bank To Chip bank number
BANK STRETCH
instruction: extend the size of a bank to a new length
Bank Stretch bank number TO length
BANK COPY
instruction: copy a memory bank
Bank Copy sourcebank TO targetbank
Bank Copy startaddress,endaddress To targetbank
BANK NAME
instruction: rename a memory bank
Bank Name bank number,name$
Encoding and Decoding Memory Banks
Using these commands you can encode banks in many different ways to protect them from unauthorized access and insight. Especially manual copy protections can be made more secure by encoding the specific keyword bank.
BANK CODE ADD
instruction: encode or decode a memory bank using addition
Bank Code Add.b code,bank number
Bank Code Add.b code,startaddress To endaddress
Bank Code Add.w code,bank number
Bank Code Add.w code,startaddress To endaddress
BANK CODE XOR
instruction: encode or decode a memory bank using xor
Bank Code Xor.b code,bank number
Bank Code Xor.b code,startaddress To endaddress
Bank Code Xor.w code,bank number
Bank Code Xor.w code,startaddress To endaddress
BANK CODE MIX
instruction: encode or decode a memory bank using mix
Bank Code Mix.b code,bank number
Bank Code Mix.b code,startaddress To endaddress
Bank Code Mix.w code,bank number
Bank Code Mix.w code,startaddress To endaddress
BANK CODE ROL
instruction: encode or decode a memory bank using rol
Bank Code Rol.b code,bank number
Bank Code Rol.b code,startaddress To endaddress
Bank Code Rol.w code,bank number
Bank Code Rol.w code,startaddress To endaddress
BANK CODE ROR
instruction: encode or decode a memory bank using ror
Bank Code Ror.b code,bank number
Bank Code Ror.b code,startaddress To endaddress
Bank Code Ror.w code,bank number
Bank Code Ror.w code,startaddress To endaddress
Delta Encoding and Decoding
BANK DELTA ENCODE
instruction: encode a memory bank using delta algorithm
Bank Delta Encode bank number
Bank Delta Encode startaddress To endaddress
BANK DELTA DECODE
instruction: decode a memory bank using delta algorithm
Bank Delta Decode bank number
Bank Delta Decode startaddress To endaddress
Functions
BANK CHECKSUM
function: calculate the checksum of a memory bank
number=Bank Checksum(bank number)
number=Bank Checksum(startaddress To endaddress)
BANK NAME$
function: get the name of a memory bank
name$=Bank Name$(bank number)
Basic Graphic Commands
BZOOM
instruction: magnify a region of the screen
Bzoom s1,x1,y1,x2,y2 To s2,x3,y3,factor
HAM FADE OUT
instruction: fade out a screen
Ham Fade Out screen number
CONVERT GREY
instruction: convert a screen to grayscale
Convert Grey sourcescreen To targetscreen
TURBO PLOT
instruction: draw a dot on the screen
Turbo Plot x,y,c
TURBO DRAW
instruction: draw a line on the screen
Turbo Draw x1,y1 To x2,y2,c
Turbo Draw x1,y1 To x2,y2,c,bitplanes
FCIRCLE
instruction: draw a filled circle on the screen
Fcircle x,y,r
FELLIPSE
instruction: draw a filled ellipse on the screen
Fellipse x,y,rx,ry
RASTER WAIT
instruction: wait for the raster beam position
Raster Wait y
Raster Wait x,y
TURBO POINT
function: return the colour of a pixel
c=Turbo Point(x,y)
X RASTER
function: return the current X position of the raster beam
x=X Raster
Y RASTER
function: return the current Y position of the raster beam
y=Y Raster
Effects Commands
Pix Shift Commands
MASK COPY
instruction: copy an area of a screen to another screen
Mask Copy screen1,x1,y1,x2,y2 To screen2,x3,y3,maskaddress
PIX SHIFT UP
instruction: increase the colour index of an area of a screen
Pix Shift Up screen,c1,c2,x1,y1 To x2,y2
Pix Shift Up screen,c1,c2,x1,y1 To x2,y2,bank
PIX SHIFT DOWN
instruction: decrease the colour index of an area of a screen
Pix Shift Down screen,c1,c2,x1,y1 To x2,y2
Pix Shift Down screen,c1,c2,x1,y1 To x2,y2,bank
PIX BRIGHTEN
instruction: increase the colour index of an area of a screen
Pix Brighten screen,c1,c2,x1,y1 To x2,y2
Pix Brighten screen,c1,c2,x1,y1 To x2,y2,bank
PIX DARKEN
instruction: decrease the colour index of an area of a screen
Pix Darken screen,c1,c2,x1,y1 To x2,y2
Pix Darken screen,c1,c2,x1,y1 To x2,y2,bank
MAKE PIX MASK
instruction: grab an area of a screen
Make Pix Mask screen,x1,y1 To x2,y2,bank
SHADE PIX
instruction: increase the colour value at the given point of a screen
Shade Pix x,y
Shade Pix x,y,number
Shade Bobs Commands
Shade Bobs aren't really bobs, but "in the scene" this is the common name for such effects. Shade Bobs increase or decrease colour values of the pixel they are placed on. This is rather similar to colour cycling, however using Shade Bobs the pixels on the screen are affected and not the palette entries!
SHADE BOB MASK
instruction: set image to use on shade bob
Shade Bob Mask flag
SHADE BOB PLANES
instruction: set number of bitplanes to use on shade bob
Shade Bob Planes number
SHADE BOB UP
instruction: increase the colour index and draw a shade bob
Shade Bob Up screen number,x,y,image
SHADE BOB DOWN
instruction: decrease the colour index and draw a shade bob
Shade Bob Down screen number,x,y,image
Td Stars Commands
TD STARS BANK
instruction: reserve a bank for 3d stars
Td Stars Bank bank,stars
TD STARS PLANES
instruction: set the bitplanes to use for 3d stars
Td Stars Planes bitplane 1,bitplane 2
TD STARS LIMIT
instruction: limit the area of a screen to use for 3d stars
Td Stars Limit
Td Stars Limit x1,y1 To x2,y2
TD STARS ORIGIN
instruction: set the starting point for 3d stars
Td Stars Origin x,y
TD STARS GRAVITY
instruction: set the direction for 3d stars
Td Stars Gravity sx,sy
TD STARS ACCELERATE
instruction: toggle acceleration for 3d stars on or off
Td Stars Accelerate On
Td Stars Accelerate Off
TD STARS INIT
instruction: initialise the 3d stars
Td Stars Init
TD STARS SINGLE DO
TD STARS DOUBLE DO
instruction: process and draw the 3d stars
Td Stars Single Do
Td Stars Double Do
TD STARS SINGLE DEL
TD STARS DOUBLE DEL
instruction: delete the 3d stars from the screen
Td Stars Single Del
Td Stars Double Del
TD STARS MOVE
instruction: move the 3d stars on the screen
Td Stars Move
Td Stars Move star number
TD STARS DRAW
instruction: draw the 3d stars to the screen
Td Stars Draw
Splinters Commands
COORDS BANK
instruction: reserve a bank to store coords
Coords Bank bank number,coords
Coords Bank bank number
COORDS READ
instruction: read coords into a bank
Coords Read screen,colour,x1,y1 To x2,y2,bank,mode
SPLINTERS BANK
instruction: reserve a set number of splinters into a bank
Splinters Bank bank number,splinum
SPLINTERS COLOUR
instruction: set splinter colour to use
Splinters Colour bkcolour,planes
SPLINTERS LIMIT
instruction: limit splinter area on the screen
Splinters Limit
Splinters Limit x1,y1 To x2,y2
SPLINTERS MAX
instruction: change max number of splinters
Splinters Max number
SPLINTERS FUEL
instruction: set the time for splinters on screen
Splinters Fuel time
SPLINTERS GRAVITY
instruction: set the direction for splinters on screen
Splinters Gravity sx,sy
SPLINTERS INIT
instruction: initialise the splinters
Splinters Init
SPLINTERS SINGLE DO
SPLINTERS DOUBLE DO
instruction: draw the splinters to the screen
Splinters Single Do
Splinters Double Do
SPLINTERS SINGLE DEL
SPLINTERS DOUBLE DEL
instruction: clear the splinters from the screen
Splinters Single Del
Splinters Double Del
SPLINTERS MOVE
instruction: move the splinters on the screen
Splinters Move
SPLINTERS DRAW
instruction: draw the splinters onto the screen
Splinters Draw
SPLINTERS BACK
instruction: save the background for next splinter draw operation
Splinters Back
Splinters Functions
COUNT PIXELS
function: count the number of pixels in an area
number=Count Pixels(screen number,colour,x1,y1 To x2,y2)
SPLINTERS ACTIVE
function: return the number of active splinters
number=Splinters Active
Font Commands
CHANGE FONT
instruction: load a font from disk
Change Font "fontname.font"
Change Font "fontname.font",height
Change Font "fontname.font",height,style
MAKE BANK FONT
instruction: create a font bank
Make Bank Font bank number
CHANGE BANK FONT
instruction: set the screen font from a bank font
Change Bank Font bank number
CHANGE PRINT FONT
instruction: change the font that is used by print
Change Print Font bank
FONT STYLE
function: return the current text styles
style=Font Style
Colour Commands
RAIN FADE
instruction: fade out a rainbow to another rainbow
Rain Fade rainbow number,$RGB
Rain Fade rainbow number To target rainbow
SET RAIN COLOUR
instruction: change the colour index of a rainbow
Set Rain Colour rainbow number,new colour
PAL SPREAD
instruction: spread the colour index from one to another
Pal Spread colour 1,rgb1 To colour 2,rgb2
PAL GET SCREEN
function: save the palette of a screen
Pal Get Screen palnr,screen number
PAL SET SCREEN
instruction: set the palette of a screen
Pal Set Screen palnr,screen number
PAL SET
instruction: change an entry of a saved palette
Pal Set palette number,index,colour
AMCAF AGA NOTATION ON/OFF
instruction: toggle aga amiga colour format
Amcaf Aga Notation On
Amcaf Aga Notation Off
Normally, AMCAF commands, which take colour values as parameter, use a normal 12 bit colour value in the format $RGB. Since machines like the A4000/A1200 there are 24 bit colour values in the Format $RRGGBB. After calling Amcaf Aga Notation On, all AMCAF commands and functions take 24 bit values, except Rrggbb To Rgb and Rgb To Rrggbb. The default setting is 12 bit.
PAL GET
function: read a saved palette entry
colour=Pal Get(palette number,index)
RED VAL
function: return the red value of a colour
r=Red Val(rgb)
GREEN VAL
function: return the green value of a colour
g=Green Val(rgb)
BLUE VAL
function: return the blue value of a colour
b=Blue Val(rgb)
GLUE COLOUR
function: return a colour using the three colour values
colour=Glue Colour(r,g,b)
MIX COLOUR
function: return a colour my mixing colours
colour=Mix Colour(colour 1,colour 2)
colour=Mix Colour(oldrgb,addrgb,lower rgb To upper rgb)
BEST PEN
function: return the nearest pen for $RGB
pen=Best Pen($RGB)
pen=Best Pen($RGB,colour 1 To colour 2)
HAM POINT
function: return the rgb value of a ham pixel
rgb=Ham Point(x,y)
HAM COLOUR
function: return a colour in ham mode
rgb=Ham Colour(c,oldrgb)
HAM BEST
function: return the best colour in ham mode
colour=Ham Best(newrgb,oldrgb)
RGB TO RRGGBB
function: return an aga colour from an ecs colour
rrggbb=Rgb To Rrggbb(rgb)
RRGGBB TO RGB
function: return an ecs colour from an aga colour
rgb=Rrggbb To Rgb(rrggbb)
Blitter Commands
AMCAF makes it possible to control the Blitter by hand and to clear, fill, copy or modify Bitplanes directly.
BLITTER COPY
instruction: copy and modify a bitplane
Blitter Copy sourcescreen,sourceplane To targetscreen,targetplane
Blitter Copy sourcescreen,sourceplane To targetscreen,targetplane,miniterm
Blitter Copy s1,p1,s2,p2 To targetscreen,targetplane
Blitter Copy s1,p1,s2,p2 To targetscreen,targetplane,miniterm
Blitter Copy s1,p1,s2,p2,s3,p3 To targetscreen,targetplane
Blitter Copy s1,p1,s2,p2,s3,p3 To targetscreen,targetplane,miniterm
BLITTER COPY LIMIT
instruction: set the blitter copy area
Blitter Copy Limit screen
Blitter Copy Limit x1,y1 To x2,y2
BLITTER FILL
instruction: fill polygons using the blitter
Blitter Fill screen,bitplane
Blitter Fill screen,bitplane,x1,y1,x2,y2
Blitter Fill sourcescreen,sourceplane To targetscreen,targetplane
Blitter Fill sourcescreen,sourceplane,x1,y1,x2,y2 To targetscreen,targetplane
BLITTER CLEAR
instruction: clear a bitplane using the blitter
Blitter Clear screen,bitplane
Blitter Clear screen,bitplane,x1,y1 To x2,y2
BLITTER WAIT
instruction: wait for blitter to finish a task
Blitter Wait
TURBO DRAW
instruction: draw from one coordinate to another
Turbo Draw x1,y1 To x2,y2,colour
Turbo Draw x1,y1 To x2,y2,colour,bitplane
BCIRCLE
instruction: draw a circle for the blitter to fill
Bcircle x,y,radius,bitplane
BLITTER BUSY
function: return the current blitter state
flag=Blitter Busy
Miscellaneous Graphic Commands
SET NTSC/PAL
instruction: switch to the 60hz ntsc mode or 50 mhz pal mode
Set Ntsc or Set Pal
SET SPRITE PRIORITY
instruction: change the sprite priority in dual playfield mode
Set Sprite Priority bitmap
SCRN RASTPORT
function: return the screen rastport address
rastport=Scrn Rastport
SCRN BITMAP
function: return the screen bitmap address
bitmap=Scrn Bitmap
SCRN LAYER
function: return the screen layer address
layer=Scrn Layer
SCRN LAYERINFO
function: return the screen layer info address
layerinfo=Scrn Layerinfo
SCRN REGION
function: return the screen region address
region=Scrn Region
Primary Disk Commands
FILE COPY
instruction: copies a file
File Copy sourcefile$ To targetfile$
WLOAD
instruction: load a file temporarily
Wload file$,bank
DLOAD
instruction: load a file permanently
Dload file$,bank
WSAVE
instruction: save a file to disk
Wsave file$,bank
DSAVE
instruction: save a file to disk
Dsave file$,bank
PROTECT OBJECT
instruction: modify the protection bits of an object
Protect Object pathfile$,prot
SET OBJECT COMMENT
instruction: set the filenote of an object
Set Object Comment pathfile$,comment$
SET OBJECT DATE
instruction: set the date of an object
Set Object Date pathfile$,date,time
LAUNCH
instruction: start a new process
Launch file$
Launch file$,stack
Disk Object Commands
EXAMINE OBJECT
instruction: get all information about an object
Examine Object file$
EXAMINE DIR
instruction: initialise the reading of a drawer
Examine Dir directory$
EXAMINE STOP
instruction: stop the reading of a directory
Examine Stop
EXAMINE NEXT$
function: read the next entry in a directory
file$=Examine Next$
OBJECT NAME$
function: return the name of an object
file$=Object Name$
file$=Object Name$(pathfile$)
OBJECT TYPE
function: return the type of an object
type=Object Type
type=Object Type(pathfile$)
OBJECT SIZE
function: return the length of a file
length=Object Size
length=Object Size(pathfile$)
OBJECT BLOCKS
function: return the length of a file in blocks
number=Object Blocks
number=Object Blocks(pathfile$)
OBJECT PROTECTION
function: return the protection flags of an object
prot=Object Protection
prot=Object Protection(pathfile$)
OBJECT TIME
function: return the time of creation of an object
time=Object Time
time=Object Time(pathfile$)
OBJECT DATE
function: return the date of creation of an object
date=Object Date
date=Object Date(pathfile$)
OBJECT COMMENT$
function: return the file note of an object
comment$=Object Comment$
comment$=Object Comment$(pathfile$)
Disk Support Functions
IO ERROR
function: return the last dos error code
errnumber=Io Error
IO ERROR$
function: return a dos errorstring
error$=Io Error$(errnumber)
FILENAME$
function: return the filename of a full path
file$=Filename$(pathfile$)
PATH$
function: return the directory of a full path
pathway$=Path$(pathfile$)
EXTPATH$
function: append a forward slash to a path if required
newpath$=Extpath$(directory$)
OBJECT PROTECTION$
function: return an objects protection flags as a string
prot$=Object Protection$(prot)
PATTERN MATCH
function: compare a string with a certain pattern
flag=Pattern Match(sourcestring$,pattern$)
DISK STATE
function: return the state of a disk device
flags=Disk State(directory$)
DISK TYPE
function: return the type of a volume
type=Disk Type(directory$)
DOS HASH
function: calculate the hash value of a file
hash$=Dos Hash$(file$)
Packer Support
PPFROMDISK
instruction: load and unpack a powerpacked file
Ppfromdisk file$,bank
PPUNPACK
instruction: unpack a powerpacked file
Ppunpack sourcebank To targetbank
PPTODISK
instruction: pack and save a file as pp20
Pptodisk file$,bank
Pptodisk file$,bank,efficiency
IMPLODER LOAD
instruction: load and decrunch a fileimploder file
Imploder Load file$,bank
IMPLODER UNPACK
instruction: decrunch a fileimploder bank
Imploder Unpack sbank To tbank
Date and Time Functions
CURRENT TIME
function: acquire the current time
time=Current Time
CT TIME$
function: create a complete time string
time$=Ct Time$(time)
CT HOUR
function: extract the hour from a time
hour=Ct Hour(time)
CT MINUTE
function: return the minute of a time stamp
minute=Ct Minute(time)
CT SECOND
function: calculate the second of a time
second=Ct Second(time)
CT TICK
function: extract the number of vertical blanks from the time
tick=Ct Tick(time)
CT STRING
function: evaluate a string into a time code
time=Ct String(time$)
CURRENT DATE
function: return the current date
date=Current Date
CD DATE$
function: create a complete date string
date$=Cd Date$(date)
CD YEAR
function: return the year from a date
year=Cd Year(date)
CD MONTH
function: return the month from a date
month=Cd Month(date)
CD DAY
function: return the day from the date stamp
day=Cd Day(date)
CD WEEKDAY
function: return the weekday from the date stamp
weekday=Cd Weekday(date)
CD STRING
function: return a date stamp from a valid string
date=Cd String(date$)
Four Player Adapter
PJOY
function: acquire direction of a joystick
bitmap=Pjoy(j)
PJUP
function: check if the joystick is pressed up
flag=Pjup(j)
PJDOWN
function: check if joystick is pressed down
flag=Pjdown(j)
PJLEFT
function: check if joystick is pressed left
flag=Pjleft(j)
PJRIGHT
function: check if joystick is pressed right
flag=Pjright(j)
PFIRE
function: check if fire button is pressed
flag=Pfire(j)
Commands for Other Gamepads
XFIRE
function: return the state of the fire buttons on a gamepad
flag=Xfire(port,button)
Mouse Commands
LIMIT SMOUSE
instruction: define the movement region of the mouse on the screen
Limit Smouse
Limit Smouse x1,y1 To x2,y2
SMOUSE SPEED
instruction: set the speed of the mouse
Smouse Speed value
SMOUSE X
instruction: set the x coordinate of the mouse
Smouse X xpos
SMOUSE Y
instruction: set the y coordinate of the mouse
Smouse Y ypos
X SMOUSE
function: return the x coordinate of the 2nd mouse
xpos=X Smouse
Y SMOUSE
function: return the y coordinate of the 2nd mouse
ypos=Y Smouse
SMOUSE KEY
function: return the state of the mouse buttons
mk=Smouse Key
Vector Rotate Commands
VEC ROT POS
instruction: position the camera
Vec Rot Pos posx,posy,posz
VEC ROT ANGLES
instruction: set the viewing angles
Vec Rot Angles angx,angy,angz
VEC ROT PRECALC
instruction: calculate the precalc matrix
Vec Rot Precalc
VEC ROT X
function: calculate the 2d x value
newx=Vec Rot X(x,y,z)
newx=Vec Rot X
VEC ROT Y
function: calculate the y value
newy=Vec Rot Y(x,y,z)
newy=Vec Rot Y
VEC ROT Z
function: return the z coordinate
newz=Vec Rot Z(x,y,z)
newz=Vec Rot Z
Protracker Music Commands
PT PLAY
instruction: replay a module
Pt Play bank
Pt Play bank,songpos
PT STOP
instruction: stop the current music module
Pt Stop
PT CONTINUE
instruction: restart a previously stopped protracker music
Pt Continue
PT VOLUME
instruction: set the volume of the protracker music
Pt Volume value
PT VOICE
instruction: toggle the audio channels
Pt Voice bitmask
PT CIA SPEED
instruction: change the replay speed of a protracker module
Pt Cia Speed bpm
PT RAW PLAY
instruction: play a chunk of memory as a sound sample
Pt Raw Play voice,address,length,freq
PT BANK
instruction: set the bank to use with pt instr play
Pt Bank bank
PT INSTR PLAY
instruction: play an instrument of a protracker module
Pt Instr Play instnr
Pt Instr Play voice,instnr
Pt Instr Play voice,instnr,freq
PT SAM BANK
instruction: set the bank to use with amos samples
Pt Sam Bank bank
PT SAM PLAY
instruction: replay a sample from an amos sample bank
Pt Sam Play samnr
Pt Sam Play voice,samnr
Pt Sam Play voice,samnr,freq
PT SAM STOP
instruction: stop the sfx on specific audio channels
Pt Sam Stop voice
PT SAM VOLUME
instruction: set the volume of a sound effect
Pt Sam Volume volume
Pt Sam Volume voice,volume
PT SAM FREQ
instruction: change the replaying speed of a sample
Pt Sam Freq chan,freq
PT VU
function: return the current vumeter value
vol=Pt Vu(channel)
PT SIGNAL
function: check for signals from the music
signal=Pt Signal
PT CPATTERN
function: return the current song position
songpos=Pt Cpattern
PT CPOS
function: return the current pattern line
row=Pt Cpos
PT CINSTR
function: return the current instrument being played
num=Pt Cinstr(chan)
PT CNOTE
function: return the frequency of the current instrument
num=Pt Cnote(chan)
PT INSTR ADDRESS
function: return the address of an instrument
address=Pt Instr Address(instnr)
PT INSTR LENGTH
function: return the length of an instrument
length=Pt Instr Length(instnr)
PT DATA BASE
function: return the address of the pt-database
address=Pt Data Base
String and Integer Functions
BINEXP
function: return the result of two to the power n
v=Binexp(a)
BINLOG
function: return logarithmic function on a basis of two
a=Binlog(v)
LSL
function: return a value as a quick multiplication by a power of two
nv=Lsl(v,n)
LSR
function: return a value as a quick division by a power of two
nv=Lsr(v,n)
WORDSWAP
function: return the swap of the upper and lower 16 bits of a value
newval=Wordswap(value)
QARC
function: return an angle from the coordinates
angle=Qarc(deltax,deltay)
QSIN
function: return a sine of an angle
value=Qsin(angle,radius)
QCOS
function: return the cosine of an angle
value=Qcos(angle,radius)
QRND
function: return a random number
value=Qrnd(maximum number)
QSQR
function: return the square root of a value
root=Qsqr(value)
ASC.W
function: convert a word string into a number
word=Asc.w(word$)
ASC.L
function: convert a long string into a number
long=Asc.l(long$)
VCLIP
function: restrict a value to a given range
newval=Vclip(val,lower To upper)
VIN
function: return a flag to test if a value is within a range
flag=Vin(val,lower To upper)
VMOD
function: return a value from a modulo operation on a value
newval=Vmod(val,upper)
newval=Vmod(val,lower To upper)
EVEN
function: return a flag if a number is even
flag=Even(value)
ODD
function: return a flag if a number is odd
flag=Odd(value)
PATTERN MATCH
function: match a string with a certain pattern
flag=Pattern Match(sourcestring$,pattern$)
CHR.W$
function: return a two byte string from a number
word$=Chr.w$(word)
CHR.L$
function: return a four byte string from a number
long$=Chr.l$(long)
LZSTR$
function: return a right adjusted number with leading zeros
s$=Lzstr$(v,n)
LSSTR$
function: return a right adjusted number
s$=Lsstr$(v,n)
INSSTR$
function: insert the second string into the first string
newstr$=Insstr$(a$,b$,pos)
CUTSTR$
function: cut out a piece of a string
newstr$=Cutstr$(s$,pos1 To pos2)
REPLACESTR$
function: replace a string with another one
newstr$=Replacestr$(s$,search$ To replace$)
ITEMSTR$
function: returns an item contained in a string
item$=Itemstr$(s$,itemnum)
item$=Itemstr$(s$,itemnum,sep$)
Misc Commands and Functions
EXCHANGE BOB
instruction: swap the two images in the sprite bank
Exchange Bob image 1,image 2
EXCHANGE ICON
instruction: swap the two images in the icon bank
Exchange Icon image 1,image 2
AUDIO LOCK
instruction: reserve the audio device
Audio Lock
AUDIO FREE
instruction: free the audio device
Audio Free
OPEN WORKBENCH
instruction: reopen a previously closed workbench
Open Workbench
FLUSH LIBS
instruction: free as much memory as possible
Flush Libs
WRITE CLI
instruction: write text into the cli window
Write Cli text$
RESET COMPUTER
instruction: reset your computer
Reset Computer
NOP
instruction: no effect
Nop
AGA DETECT
function: check if the computer has aga chipset
flag=Aga Detect
This system friendly function detects the AGA chipset, found in A1200, A4000 and CD machines. It returns -1 (True), if the new chipset is mounted or 0 (False) if the ECS or OCS chipset are still in use. Note that it does not check for the kickstart version only, so A2000 and A500 machines with kick 3.0 or higher will be detected as non-AGA correctly. Therefore, if the AGA chipset had been disabled either using the boot menu or the "Setpatch NOAGA" command, it will return that no AGA is available.
SCANSTR$
function: return the name of a key
key$=Scanstr$(scancode)
COMMAND NAME$
function: return the name of the program
fname$=Command Name$
TOOL TYPES$
function: read the tool types of an icon
tools$=Tool Types$(filename$)
AMOS CLI
function: return the cli process number of an amos.program
n=Amos Cli
SPEEK
function: return a signed byte from memory
value=Speek(address)
SDEEK
function: return a signed word from memory
value=Sdeek(address)
CPU
function: return the number of the fitted cpu
chip=Cpu
FPU
function: return the id number of an coprocessor
chip=Fpu
NFN
function: no effect
dummy=Nfn
COP POS
function: return the current address of the copper list
address=Cop Pos
Extension Commands
EXTDEFAULT
instruction: call the default routine of an extension
Extdefault extnb
EXTREMOVE
instruction: remove an extension from memory
Extremove extnb
EXTREINIT
instruction: try to restart a previously removed extension
Extreinit extnb
AMOS TASK
function: return the address of the amos task structure
address=Amos Task
AMCAF VERSION$
function: return an amcaf version string
Print Amcaf Version$
AMCAF BASE
function: return the base address of the amcaf database
address=Amcaf Base
AMCAF LENGTH
function: return the length of the amcaf database
length=Amcaf Length
Reference of Turbo extension
Blit
BLIT STORE LEFT screen,blitnr,x,y TO x1,y1,shift
allows to define up to 96 different scrolling zones, each of these zones can be associated with a specific scrolling operation
MULTI BLIT start TO end
scrolls the screen. start and end refer to the zones
BLIT INT ON start TO end
adds new interrupt server. Is then executed independent of Amos
BLIT INT OFF
turns blitter interrupt off
BLIT SPEED blitnr,shift
change speed
BLIT ERASE blitnr
erases and free memory
BLIT LEFT screen,x,y TO x1,y1,shift
scroll will be executed immediately
BLIT CLEAR X
clears any bitplane
Block
F PUT BLOCK block,x,y
general purpose block routines
RESERVE STATIC BLOCK x
reserves x*8 bytes of memory
STATIC BLOCK ERASE
returns the memory back to system
BUILD STATIC BLOCK
converts into a static block-list
Graphics
R MOVE dx,dy
moves relative to cursor
R DRAW dx,dy
draw a line relative to cursor
R BOX dx,dy
draw a box relative to cursor
R BAR dx,xy
draw a filled bar relative to cursor
F DRAW x,y
draw to x,y
F DRAW x,y TO x1,y1
LINE 3D x,y,z TO x1,y1,z1
draw line in 3D
EYE 3D x,y
changes view
F PLOT x,y,colour
plot like in Amos
=F POINT(x,y)
like in Amos
F CIRCLE x,y,radius,colour
like in Amos
Icon
F PASTE ICON x,y,icon
highly optimized general purpose icon routine
F 16 ICON x,y,icon
for icons that have width of 16 pixels
F 32 ICON x,y,icon
for icons that have width of 32 pixels
F 16PROC ICON x,y,icon
uses processor instead blitter for icons with 16 pixels width
F 32PROC ICON x,y,icon
uses processor instead blitter for icons with 32 pixels width
=X ICON(nr)
returns width
=PLANES ICON(nr)
returns number of planes
Misc
MULTI YES
enables multitasking
MULTI NO
disables multitasking
VBL WAIT x
wait until raster beam has reached a given value
=LSL.B(x,y)
=LSL.W(x,y)
=LSL.L(x,y)
=LSR.B(x,y)
=LSR.W(x,y)
=LSR.L(x,y)
=L SWAP(x)
=TEST.B(x,y)
=TEST.W(x,y)
=RAW KEY(n)
=LEFT CLICK
=CPU INFO
=MATH INFO
Object
OBJECT LIMIT x                     maximum amount of objects
rESERVE OBJECT CHIP object,count  reserves count bytes in chip
RESERVE OBJECT FAST object,count reserves count bytes in fast
DEFINE DRAW object,element TO x,y   defines vector element as a draw instruction
DEFINE MOVE object,element TO x,y
DEFINE STOP object,element TO x,y
DEFINE ATTR object,element TO colour,drawmode
OBJECT DRAW object               draws object
R OBJECT DRAW object,x,y           draws object relative to x,y
OBJECT MAG DRAW object,mul
R OBJECT MAG DRAW object,x,y,mul
OBJECT ERASE object
OBJECT SAVE “Name”, start TO end
OBJECT LOAD CHIP “NAME”, start
Plane
SET PLANES mask               restricts drawing operations to a number of bitplanes
PLANE OFFSET scnr,planenr,xoffset,yoffset   sets the offset for a bitplane used by screen scnr
PLANE SWAP scnr,plane1,plane2  swap planes
PLANE SHIFT UP scnr,start TO end  shifts planes up
PLANE SHIFT DOWN scnr,start TO end
PLANE UPDATE scnr             updates screen
Stars
RESERVE STARS count         reserves memory for count star definitions
DEFINE STAR nr,x,y,x speed,y speed  defines star nr, x and y are initial coordinates
DISPLAY STARS                shows stars
STARS SPEED start TO end,x speed,y speed   changes speed
F STARS                       displays stars without computing next position
STARS COMPUTE start TO end   computes next position without displaying
STARS ERASE                 gives back memory
STARS CLIP x,y,x1,.y1           limits stars to region
STARS INT ON                 adds new interrupt server
STARS INT OFF                turns off interrupt server
Zone
=HIT SPR ZONE(dx,dy,n)         checks if sprite number n enters a zone
=HIT BOB ZONE(dx,dy,n)         checks if bob number n enters a zone
RESERVE CHECK x            reserves x check zones
CHECK ERASE                releases memory
RESET CHECK z
SET CHECK z,x1,y1 TO x2,y2
=CHECK(start TO end,x,y)
=HIT SPR CHECK(start TO end,dx,dy,n)


Reference of AMOS Pro Extensions Intuition Andrew Church
DisplayInfo
=Aga
=ECS
returns -1 (true) if is available
=Ehb
=Ham
=SuperHires
returns screenmode value
=X Hard Min
=Y Hard Min
minimum hardware coordinate
Screens
Iscreen Open n,width,height,colours,mode
Iscreen Open n,width,height,colours,mode,title$
Iscreen Open n,width,height,colours,mode,title$,displayID
opens screen including full AGA support
Iscreen OpenPublic n,width,height,colours,mode
Iscreen Open Public n,width,height,colours,mode,title$
Iscreen Open Public n,width,height,colours,mode,title$,displayID
opens public screen
Iscreen Open Front
causes any screens opened in front of all other screens
Iscreen Open Back
opens screens in back
Iscreen Close n
closes screen
Set Iscreen n
set current screen to n
=IScreen
returns number of current screen
Iscreen Display n,x,y,w,h
positions screen and sets visible size
Iscreen Offset n,xoffset,yoffset
offsets visible portions of screen
Iscreen To Back
Iscreen To Back n
sends n or current screen to back
Iscreen To Front
Iscreen To Front n
the opposite
Set Iscreen Title s$[,n]
sets title of current screen or n
=Iscreen Width
=Iscreen Width(n)
returns width
=Iscreen Height
=Iscreen Height(n)
returns height
=Iscreen Title Height
=Iscreen Colour
=Iscreen Colour(n)
returns number of colours available on screen
=Iscreen Mode
=Iscreen Mode(n)
returns mode value
=Iscreen Base
returns address of screen structure
Set Icolour n,c
sets colour n to c ($RGB)
=Icolour(n)
returns RGB value of n
Ipalette colour-list
sets one or more colour values
Iget Sprite Palette
Iget Sprite Palette mask
reads colour palette from object sprite bank and uses it for current screen
Iget Icon Palette
Iget Icon Palette mask
Icls
Icls colour
Icls colour,x1,y1 To x2,y2
clears screen
Iscreen Copy source To destination
Iscreen Copy source,x1,y1,x2,y2 To destination,x,y
copies part of screen to another
Amos Iscreen Copy source To destination
Amos Iscreen Copy source,x1,y1,x2,y2 To destination,x,y
Iscreen Amos Copy source To destination
Iscreen Amos Copy source,x1,y1,x2,y2 To destination,x,y
copies amos screen to intuition
=X Ihard(x1)
=Y Ihard(y1)
converts screen x coordinate x1 to hardware x
=X Iscreen(x1)
=Y Iscreen(y1)
converts hardware x coordinate x1 to screen x
Window
Iwindow Open n,x,y,w,h[,flags]
opens window on intuition screen
Iwindow Open Wb n,x,y,w,h[,title$[,flags]]
opens window on Wb screen
Iwindow Close nn
closes window
Iwindow Close Wb n
closes WB window
=Iwindow
returns number of current window
Set Iwindow Wb n
sets current window to window n on workbench
=Iwindow On Wb
returns true if current window is a workbench
Iwindow To Front
Iwindow To Front n
Iwindow To Front Wb n
brings window n to front
Iwindow To Back
Iwindow To Back n
Iwindow To Back Wb n
sends window to back
Iwindow Move n,x,y
Iwindow Move Wb n,x,y
moves window to coordinate
Iwindow Size n,w,h
Iwindow Size Wb n,w,h
resizes window
Set Iwindow Title [n}[,window$]{,screen]
set window and screen title
=Iwindow X
=Iwindow X(n)
=Iwindow X Wb (n)
returns coordinate
=Iwindow Width
=Iwindow Width(n)
=Iwindow Width Wb (n)
returns width
=Iwindow Height
=Iwindow Height(n)
=Iwindow Height Wb(n)
returns height
=Iwindow Actual Width
=Iwindow Actual Height
returns usable area
=Iwindow Base
returns base address
=Iwindow Status
=Iwindow Status(n)
=Iwindow Status Wb(n)
returns integer for current status
Iwindow Activate n
activates window
=Iwindow Active
current active window is on current screen
=Iwindow Active Num
returns number of currently active window
=Iwindow Active Base
returns base address
Iclw
Iclw colour
Iclw colour,x1,y1 To x2,y2
clears current window
Input/Output
=Imouse X
=Imouse Y
returns x coordinate of mouse pointer relative to current screen
=Imouse Key
returns status of mouse buttons
=Iget$
returns next character in input buffer
=Iread Char$
waits for a key and return it
=Iread Str$
reads string terminated with a return
=Iread Int
reads integer and returns it
=Iscan
return scan code of the last key pressed
=Ishift
returns keyboard shift-state
Iwait Mouse
waits for mouse click
Iwait Key
waits for a key being pressed
=Iwait event
=Iwait event Vbl
wait for event to occur
=Ievent Data
gives extra informations about event
=Ievent type
it returns a value from the event
Iclear {key / mouse / menu }
Iclear All
clear buffers
Ilocate x,y
positions graphics cursor
Ilocate Gr x,y
positions at graphic cursors
=Ixgr
=Iygr
returns coordinate of graphics cursor
link foreground
link foreground,background
sets colour for drawing
Igr Writing n
changes mode for writing text and graphic
Itext x,y,s$
writes text to current window
Icentre s$
centres string s$ on current line
Iwrite
Iwrite s$
prints string to screen
Iplot x,y
Iplot x,y,colour
plots a point to screen
Idraw x1,y1 To x2,y2
Idraw To x,y
draws a line
Ibox x1,y1 To x2,y2
draws a box
Ibar x1,y1 To x2,y2
draws a filled box
Icircle cx,cy,r
draws a circle
Iellipse cx,cy,rx,ry
draws ellipse
Set Ipens highlight,shadow
sets pen number used in drawing gadget borders
Iget Icon n,x1,y1 To x2,y2
Iget Icon screen,n,x1,y1 To x2,y2
Iget Icon screen,window,n,x1,y1 To x2,y2
grabs image and stores in icon bank
Ipaste Icon x,y,n
copies icon
Fonts
Set Ifont name$,size
Set Ifont namesize$
sets font for current screen, window
=Ifont$
returns name of the current font
=Ifont Height
returns height
=Itext Base
returns baseline coordinate
=Itext Length(s$)
returns width in pixels
=Ifont Base
returns address of font base
Requesters
Irequest Def Title title$
sets default title for all message requesters
=Irequest File$
=Irequest File$(title$[,pattern$[,default$]])
displays file requester
=Irequest File Multi$
=Irequest File Multi$(title$[,pattern$])
select multiple files
=Irequest File Next$
return next file
=Irequest Font$
=Irequest Font$(title$)
displays a font requester
=Irequest Screen
=Irequest Screen(title$)
request screen mode, size and depth
=Ireq Scr Height
returns height
=Ireq Scr Mode(n)
returns screen mode or display mode
=Ireq Scr Width
returns width
Irequest Error s$
Irequest Error s$,cancel$
Irequest Error title$,s$,cancel$
displays error message
=Irequest Warning(s$)
=Irequest Warning(s$,ok$,cancel$)
=Irequest Warning(title$,s$,ok$,cancel$)
Warning message
=Irequest Message(text$,gadget$)
=Irequest Message(title$,text$,gadget$)
contains message
=Reqtools
reqtools library installed?
Menus
Set Imenu s$,menu[,item[.sub]]
defines a menu
=Ichoice(level)
returns last menu number
Imenu On
Imenu Off
activates/deactivates menu bar
Gadgets
Reserve Igadget
Reserve Igadget n
allocates space for gadgets
Set Igadget Toggle n,x,y,w,b
Set Igadget Toggle n,x,y,w,b,init
defines toggle gadget
Set Igadget Hit n,x,y,w,h
defines hit-select gadget
Set Igadget Hslider n,x,y,w,h,units,pos,size,overlay
Set Igadget Vslider n,x,y,w,h,units,pos,size,overlay
defines slider gadget
Set Igadget String n,x,y,w,h,maxlen
Set Igadget String n,x,y,w,h,maxlen,init$
Set Igadget String n,x,y,w,h,maxlen,init$,strpos
defines string gadget
Set Igadget Int n,x,y,w,h
Set Igadget Int n,x,y,w,h,init
Set Igadget Int n,x,y,w,h,init,strpos
defines integer gadget
Igadget On
Igadget On n
add one or more gadgets
Igadget Off
Igadget Off n
remove gadgets
Igadget Active
Igadget Active n
activates gadget n
Igadget Inactive
Igadget Inactive n
Deactivates gadget
Other functions
Iwait n
Waits for n vertical blanks
Iwait Vbl
waits for next vertical blank interrupt
=Ierr
returns error number
=Ierr$
returns text of error
Ierror n
generates error
Itrap On
Itrap Off
error trapping
=Ierrtrap
error occured?
I Flush
frees temporary memory

Reference of Aros Vision 68k CRAFT
Colours
RESERVE AS PALETTE bank number, number of palettes
reserves a palette bank
PAL TO BANK bank number[,place{,mask]]
puts current palette in a memory bank in the position (place) given
PAL FROM BANK bank number[,place[,mask]]
gets a palette out of a bank
PAL SWAP BANK bank number[,place[,mask]]
swaps current palette and palette in a bank
=PAL COUNT(bank number)
returns the number of palettes located in a bank
SET BANK COLOUR bank number,place,index,colour
changes a colour located in a bank to the colour value given
=BANK COLOUR(bank number,place,index)
returns colour located in a bank. -1 if no colour available
DEL BANK COLOUR bank number, place, index
deletes colour
SET RED colour, value SET GREEN colour,value  SET BLUE colour,value
changes the red/green/blue (RGB) component of a given colour index to “value”
=PAL RED(colour) =PAL GREEN(colour) =PAL BLUE(colour)
returns value for red, green, blue of a given colour
PAL COPY colour1 To colour2
copies value of colour1 to colour2
PAL SWAP colour1, colour2
swap colours
PAL SPREAD colour1 To colour2
colour1 is transformed to look a little more like colour2
=GR INK   =GR BACK   =GR BORDER
returns value of current ink/back/border colour set with INK instruction
Requesters
=SYS REQUEST(t1$[,t2$[,t3$[,t4$[,t5$]]]],pos$,neg$)
creates a requester that requests something from user. t1$..t5$ contain text to be displayed. pos$ is displayed in negative button, neg$ in negative button. It returns -1 if positive button is pressed, 0 if the negative button is pressed.
=GURU ALERT(t1$[,t2$[,t2$[,t2$[,t2$]]]])
red alert box.. Right button returns 0, left -1. Stops multitasking
Audio
ST LOAD file$,bank number
loads a sound/noise/protracker module file$ to a bank
ST PLAY bank number[,position]
plays module from a bank
ST STOP
stops the music
ST PAUSE ON     ST PAUSE OFF
pause/unpause current module
ST VOICE bit-mask
=ST CHANNEL(channel)
channel is used? -1=true 0=false
ST VUMETER SPEED amount
sets decreasing speed of vumeters of current module
=ST BASE
returns address of internal data zone of module playing system
=ST VERSION
returns current version number of MusiCRAFT extension multiplied by 100
Fractals
FR POSITION x,y
this instruction specifies the geometric co-ordinates of the upper lefthand corner of the fractal window. The coordinates are multiplied by 8192.
=FR X POSITION           =FR Y POSITION
returns x/y coordinates of the upper lefthand corner of the fractal window.
FR STEP xystep          FR STEP [xstep],[ystep]
specifies the scale of the picture or the fractal coordinate step between two pixels. Unit used is 1/8192.
=FR X STEP           =FR Y STEP
return fractal step between two pixels
FR WINDOW screen       FR WINDOW [screen,]x,y,width,height
any Amos screen area can be used for fractal pictures
FR COLOUR index,colour
colour parameter specifies the colour number to be used. Index is the number of the iteration for which you are going to set the colour. Valid are 0-1024.
=FR GET COLOUR(index)
returns the colour assigned to the index given
FR SCAN startline[,height]         FR SCAN ALL
You can use this instruction to draw only some horizontal lines of the picture at once
FR JULIA cr,ci,iterations
this draws a julia set
FR MANDELBROT iterations
draws a mandelbrot set
FR RESET
resets settings
Turtle
TR FORWARD d       TR FORW d
TR BACK
=TR X POS            =TR Y POS
TR MOVE x,y             TR MOVE REL dx,dy
TR DRAW x,y             TR DRAW REL x,y
TR ANGLE angle
=TR GET ANGLE
TR RIGHT angle           TR LEFT angle
TR TOWARDS x,y
=TR DISTANCE(x,y)
TR PEN UP                  TR PEN DOWN
=TR PEN STATE
TR REMEMBER X       TR REMEMBER Y        TR REMEMBER A
TR MEMORIZE X       TR MEMORIZE Y        TR MEMORIZE A
TR HOME
TR SET HOME x,y
=TR X HOME           =TR Y HOME
TR EXEC command$[,count]
=TR ERROR
TR PROPORTIONS xy           TR PROPORTIONS x,y
TR RESET
=TR BASE
Strings
=Up Case$(string$)     =Lo Case$(string$)           =Flip Case$(string$)
changes case of letters of the string from upper to lower and vice versa
=CHR CONV$(string$, chr1 to chr2)
converts all characters whose ASCII code is chr1 to the character whose ascii code is chr2
=LEFT TRIM$(string$[,trim$])      =RIGHT TRIM$(string$[,trim$])
removes leading or trailing spaces
=STR COUNT(search$,string$)
counts how many times does search$ occur in the string$
=BW INSTR(s$,f$[,p])
searches backward
=STR SCRAMBLE$(string$,password$)   =STR UNSCRAMBLE$(string$,password$)
scramble/unscramble string$ using the password given
=Hex DUMP$(address,length)     =HEX DUMP$(address,length,sep)
dumps memory in hexadecimal from address to address+length
=CHR DUMP$(address,length)
dumps memory from address to address+length in ASCII
STR POKE address,string$
puts string given to the memory starting from address
=STR PEEK$(address,length[,stop$])
returns a string which is fetched from address given
Memory
=CHIP MAX BLOCK      =FAST MAX BLOCK
returns the size of the biggest continuous block of chip/fast memory
=MEM TYPE address
tells what kind of memory is located in the address given (0 public, 1 chip, 2 fast)
MEM COPY start,finish To destination
copies segment. Can cause crashes
=MEM STR COUNT(start To end,search$)  =MEM STR COUNT(bank number,search$)
counts how many times does search$ occur
MEM SCRAMBLE start To finish,password$
MEM SCRAMBLE bank number,password$
MEM UNSCRAMBLE start To finish,password$
MEM UNSCRAMBLE bank number,password$
scramble and unscramble areas of memory or memory banks
Disc & Files
=DR NAME$(path$)
returns name of the directory path$
=DR NEXT$
returns next filename of the directory set by =DR NAME$
=DR LENGTH
returns length of current file
=DR TYPE
returns type of current object
=DR COMMENT$
returns comment installed to current file
=DR PROTECT
returns protection bits of current file
=DR FIB
give address of the FileInfoBlock (FIB) of current file
DR FORGET
erases all data concerning directory reading from memory
=DB FREE(drive$)       =DB USED(drive$)
returns free/used amount of disc space in given drive
=DB SIZE(drive$)
returns size of a block on a given drive
=DISC STATE(drive$)
returns state of a drive
=DISC TYPE$(drive$)
returns identification code of the disc in drive
SET PROTECT file$,bits
changes the protection bits of the file
=FILE PROTECT(file$)
returns settings of protection bits of the file given
SET COMMENT file$,comment$
assigns comments to a file
=FILE COMMENT$(file$)
returns comment
=FILE LENGTH(file$)
returns length in bytes
=FILE TYPE(filespec$)
returns positive value if it is directory, if it is a file it is a negative value
=DISC ERROR
returns error number
Amiga System
OPEN WORKBENCH
opens workbench if closed earlier
WB TO FRONT            WB TO BACK
if you have workbench and a workbench application you can flick those screens
CLI EXECUTE command$
executes DOS command
CLI PRINT text$
prints text to CLI
=CLI HERE
returns -1 if started from CLI else from Workbench
WB DEF PREFS address,length    WB PREFS address,length
copy default or current system preferences to memory address given

Reference of Aros Vision 68k
Jd date$
jd time$
jd setdate
jd setclock
jd actual date$
jd time$
jd timesecs
jd secstime$
jd reset area
jd get area
jd area first
jd area last
jd limit
jd get number
jd get string$
jd keypress
jd keywait
jd mwait
jd wait amiga
jd wait event
jd moff click
jd moff key
jd double click
jd checksum
jd bootchecksum
jd diskchange
jd odd
jd checkport
jd crypt$
jd encrypt
jd cut$
jd insert$
jd skip$
jd extend$
jd exval$
jd firstup$
jd change$
jd paste$
jd rol$
jd ror$
jd compare
jd count
jd dump$
jd stream$
jd detab
jd percent
jd deoct
jd oct$
jd e#
jd pi#
jd asl
jd asr
jd lsl
jd lsr
jd rol
jd ror
jd roxl
jd roxr
jd eqv
jd read sector
jd write sector
jd install
jd format
jd shortformat
jd copy
jd hardware$
jd logical$
jd file size
jd file type
jd file comment$
jd file protection
jd count dirs
jd count files
jd char x
jd char y
jd screen planes
jd intscreen
jd intwindow
jd rastport
jd video on
jd video off
jd distance
jd arcus
jd x pos
jd ypos
jd spread
jd squash
jd tscroll
jd hexdump
jd type
jd print
jd draw segment
jd spline
jd draw angle
jd slide x
jd slide y
jd slide up
jd slide down
jd slide left
jd slide right
jd reset
jd largest chip free
jd largest fast free
jd Ppfind mem
jd Ppdecrunch
jd flush
jd get tab
jd multi on
jd multi off
jd dled on
jd dled off
jd reduce dim
jd reset dim
jd array swap
jd array clear
jd array$ clear


Reference of Aros Vision 68k GUI
Screen
GUI Screen Openscreen,number,width,height,colours,ModeID
GUI Screen Openscreen,number,width,height,colours,ModeID,font name,font size
opens public screen
GUI Screen Close n
closes screen
=GUI Screen Width(screen)
=GUI Screen Height(screen)
=GUI Screen Depth(screen)
=GUI Screen Colours(screen)
=GUI Screen Base(screen)
start address
Gui Screen Move deltax, deltay
moves screen by specified pixels
Gui Show Title screen,mode
hide/show title bar
=Gui Monitor(modeid)
checks for specified ID
Gui Clone screen,mode
display Amos screen in Gui screen
=Gui Pub Screen(nsme$)
locks screen
=Gui Pub name$
returns the next public screen name
Gui Pub Free
frees public screen
Gui Pub List
list of all public screens
Gui Pub List Free
free public screen list
Gui Pub To Front screen
brings screen to front
Gui Pub To Back
brings screen to back
Gui Pub Mode screen,number,mode
change public status of a screen
‘=Gui Pub Check(screen)
return the number of windows
Colour
=Gui AGA(colourpalette)
converting 8bit palette value into AGA 32bit
=Gui Rgb colour,value
=Gui Rgb colour,red,green,blue
change current colours
=Gui Red(colour)
returns red level of the specified colour
=Gui Green(colour)
returns green level of the specified colour
=Gui Blue(colour)
returns blue level of the specified colour
=Gui Best(red,green,blue)
get nearest colour equivalent
Gui Remap bank
allows to adapt the colour map of the specified RTG bob bank
Zone
Gui Reserve Zone window,number
must be used to allocate enough memory
Gui Free Zone window
erase all the zones of the specified window
Gui Set Zone window,zone,x,y To x1,y1
defines area
Gui Mouse Zone window,x,y
returns number of zone at coordinate
=Gui Zone
returns number of interactive zone
Mouse
Gui Rmb window,mode
enable the use of right mouse-button
Gui Mouse Mode 0
Gui Mouse Mode 1
alter frequency of mouse click events
Gui Mouse Queue window,queue limit
expand mouse queue limit
=Gui Mouse X
x screen-coordinate of mouse
=Gui Mouse Y
y screen-coordinate of mouse
=Gui Mouse Wx
=Gui Mouse Wy
get position in relation to current window
=Gui Mouse Ex
=Gui Mouse Ey
get mouse position related to last event occurred
=Gui Mouse Report window,mode
activate events report
App Windows
=Gui App Id
returns number of selected App Icon
=Gui App Name$
returns name of the file dragged on App Icon
Gui App Icon number,name,icon path
create a new appicon on your Wb screen
Gui App Remove
=Gui Iconify(window,icon name,icon path)
iconify the specified window
Gui Uniconify id
Extra fast animation
Xfa Play file,loop,auto,wait,slow,modeid
play xfa file
Xfa Rtg Play file,loop,auto,wait,slow,modeid
play xfa on RTG
=Xfa Check(file)
checks if file xfa
=Xfa Width
returns pixel width
=Xfa Height
returns pixel height
=Xfa Mode Id
returns screen mode
=Xfa Depth
returns planes depth
=Xfa Pack
returns compression mode
=Xfa Frames
returns frames number
Miscellaneous commands
Gui Gfx type,number
tells where graphic operations are carried out
Gui Beep
screen flash
Gui Wait Vbl
Gui Wait Vbl vbls
similar wait vbl
Gui Ink colour
specify the default drawing colour
Gui Paper colour
sets colour for text
Gui Pen colour
sets the text output colour
Gui Text x,y,text$
write some text
Gui Writing bitpattern
change graphic writing mode
Gui Draw x,y To xx,yy
Gui Draw To xx,yy
draw a line
Gui Draw To
Gui Line 3D x,yz To x1,y1,z1
draw a line in 3D space
Internet
=Tcp Open(url,port,user data)
establishes a network connection
=Tcp User(socket)
returns user data
Tcp Set socket,value
set user data
Tcp Close
Tcp Close socket
close the connection
=Tcp Send(socket,address,length)
sends specified number of bytes to a socket
=Tcp Send$(socket,string)
send string to socket
=Tcp Read(socket,address,length)
read bytes from socket
=Tcp Line$(socket)
read a line of text
=Tcp Socket
returns socket number
=Tcp Listen(port,data)
create a socket
=Tcp Accept(socket)
acceppt a connection
Tcp Download socket To filename
automatically download
=Tcp Total
returns total number of bytes downloiaded
=Tcp Recvd
returns number of bytes downloaded
=Tcp Response
returns numeric value of server response
=Tcp Host$
returns host name

Reference of AMOS Pro Game Extension
Mouse
=G Left Click
=G Right Click
G Wait Lmb
Wait for left mouse click
G Wait Rmb
Wait for right mouse click
ProTracker
G Ptload file$
G Ptplay
G Ptstop
G Ptfade time
fades volume to 0 over specified time
G Ptpause
pauses at current position
G Ptunpaus
continues at pause position
G Ptvolume
sets volume (0-63)
G Ptchan On numbers
Turns on channels (f.e. %0101 for 2 and 4)
G Ptchan Off numbers
Turns off channels
G Ptset Pos a
Sets position
=G Ptlength
Returns length of mod
Graphic Commands
G Screen Open n,x,y,c,m
n=screen number 0-7
x=horizontal (f.e. 320 for lowres)
y=vertical (f.e. 256 for lowres PAL)
c=amount of colours (>64 needs AGA, >256 needs RTG)
m=lowres, hires, superhires, ehb, eham, Chunky8, Chunky16
G Screen Close n
G Screen Offset n,x,y
move view when screen is larger
G Screen Copy a,b
Copies screen a in screen b
G Double Buffer
Used before G Screen Open, sets up double buffer
G Triple Buffer
Used before G Screen Open, sets up triple buffer
G Swap Buffer
Cycles between buffers
G Plot x,y,c
Plots dot at x,y in colour c
G Load IFF file$,n
Opens IFF-File on screen n
G Reset
Closes all open screens
G Screen Hide n
hides screen
G Screen Show n
shows screen
G Getbob a,b,c,d,e To f,g
G Cls
clears screen with colour 0
G Update
Waits for a Vbl
G Line x1,y1 To x2,y2,c
Draws Line in color c
G Circle x,y,r
Circle at specified center and radius
G Get Palette a,b
Changes palette in screen b to palette of screen a
G Palette first,col1,col2,..,,col8
first=first color to change and then change up to color 8
G Def Palette a,b,c,d,e,f,g,h,i
define palette before open a screen
G Ink colour
changes current ink to colour
G Set Pen t,r
t=type (0=Pixel, 1=square 2=circle), r=radius
G Colour n, $RRGGBB
Changes colour n to $RRGGBB value
Explaination: $RRGGBB is similar to $RGB but now there are 256 levels of red, green, blue instead of 16.
=G X Mouse
returns x hardware coordinate of mouse pointer
=G Y Mouse
G Set Mouse a,b
=G Point(x,y)
Returns colour on coordinate
G Encrypt file$,bank,password$
G Decrypt sourcebank To destbank
G Reboot
reboots System
G Iconify t$,b$ G Iconify t$,b$,c
puts icon on WB and waits for doubleclick or return directly
=G Icon Check
Checks if icon was doubleclicked
=G Check Vbl
Check if it is time for Vbl (PPC)
=G Cd32(b)
b=port 0-3, returns low-end bitmap
=G Oddno(b#)
=G Filesize(file$)
returns length of file
=Gsin(b)
=Gcos(angle)
G Handicap
Gives AMOS Priority of 256, speeds up code
G Unhandicap
G Reset
Always at end of code. Resets TGE
G Load Bobs a$,b
Loads Bobs from file in bank
G Set Bob a,b,c,d
Gets a Bob ready to be drawn
G Draw Bob
draws the Image that were setup
G Save Bobs a$,b
Saves bank
G Blur p,x1,y1 To x2,y2
Blurs screen
G Copyarea s,d,x,y To c,u,dx,dy
copy parts of screen to another
Sprite n,x,y,b
New commands:
G Get Bob a,b,c,d,e To f,g
G Init Bobs a,b
G Setup Bobs
G Set Bob a
G Bob a,b,c,d
G Init Mbobs a
G Set Mbob a,b,c,d
G Sprite a,b,c,d,e
Zurück zum Seiteninhalt