Banked functions Table at 003F : 6800 (ROM V1.004)

This table contains 390 functions. Click on a link in the discription area for more detailed information when calling a function.
Index
Bank 3F
address
Function
Address
Discription
000068003A:5B54Read App Preference
000368033A:587ASave App Preference
000668063A:5C7FDelete App Preference
000968093A:74E3Get program ID
000C680C2F:4270Memory error message box
000F680F28:4000Get system format
001268122F:5845-
001568153B:50BF 
0018681825:5520 
001B681B3D:53FE 
001E681E3D:4EF2 
002168213D:41A8 
002468243D:560D 
002768273D:57F6'Warning language data missed' message box
002A682A3D:57CEEnter Synchronizing Mode (same as wake-up)
002D682D3D:504F 
003068301E:6EE6Rotate resource
0033683329:7049 
003668363D:58A5sqrt
003968393D:5D39 
003C683C3D:5AC9atod
003F683F29:7654Get Avigo Version
0042684229:76C2 
0045684508:4000Avigo diagnostic Menu
0048684832:66C5 
004B684B32:6712 
004E684E32:675A 
0051685132:67DA 
0054685432:6867 
0057685732:68E3 
005A685A32:6956 
005D685D32:69B4 
0060686032:6A8D 
0063686332:6F85 
0066686632:7252 
0069686932:7301 
006C686C32:73C8 
006F686F32:776A 
0072687232:77D5 
0075687532:788B 
007868782D:7362 
007B687B2D:7392 
007E687E2D:73BE 
0081688132:7911 
0084688432:797D 
008768872A:5E8F 
008A688A32:7A44 
008D688D02:6F2B'Error 1002: upgrade canceled' message box
009068901E:4000Set State (view)
009368931E:4067Draw (view)
009668961E:4074Handle Event (view)
009968991E:41A2Set group state
009C689C1E:4228Draw group
009F689F1E:42D8Handle group event
00A268A21E:4414Execute group
00A568A51E:458DRedraw group
00A868A81E:45D9Preview group
00AB68AB1E:4670Set current group
00AE68AE1E:47B0Insert group
00B168B11E:5603Draw deskbox (see also 6941 )
00B468B41E:5A0FHandle deskbox event
00B768B71E:56EADraw deskbox title
00BA68BA1E:65C2Redraw deskbox
00BD68BD1D:4507Draw button
00C068C01D:45CBHandle button event
00C368C31D:42DCDraw button status
00C668C61F:4000Draw page arrow
00C968C91F:4273Handle page arrow event
00CC68CC1F:496E 
00CF68CF1F:50E4 
00D268D21B:66A4Draw Lister
00D568D51B:6AC3Handle Lister event
00D868D81B:6F06Write Lister item
00DB68DB1B:6F27Lister Pen Down Act
00DE68DE19:58C6 
00E168E119:5CB1 
00E468E419:6836 
00E768E719:6940 
00EA68EA1F:5CAEDraw Menufield
00ED68ED1F:5E68Handle Menufield event
00F068F01F:63ACSet numberset State
00F368F31F:6419Draw Numberset
00F668F61F:66D2Draw Numberset number
00F968F91F:67CA 
00FC68FC1F:698AHandle numberset event
00FF68FF1F:70E8Draw stacked list
010269021F:73BDHandle stacked list event
010569051F:73B0Draw stacked list example
0108690818:52F7Set Squarefield state
010B690B18:5404 
010E690E18:54BB 
0111691118:56CA 
0114691418:5C9D 
0117691718:5D5D 
011A691A18:5EAB 
011D691D18:6475Draw Boolfield (Checkbox)
0120692018:658EHandle Boolfield event (checkbox)
0123692318:6C67Draw date field
0126692618:6D35Handle date field event
0129692918:68AFDraw timefield
012C692C18:697DHandle timefield event
012F692F18:705BDraw starttime-endtimefield
0132693218:716CHandle starttime-endtimefield event
0135693518:741EDraw Numberfield
0138693818:7624Handle Numberfield event
013B693B1E:6666Create deskbox
013E693E1E:69F1Change Command Menu
014169411E:498CDraw Deskbox (direct)
014469441D:4B29Create button
014769471D:4E0BChange button
014A694A1D:4F5AInsert button
014D694D1D:4000Draw Button direct
015069501F:470CCreate Page arrow
015369531F:48ACInsert (page arrow)
015669561F:55B5Create Control Menu
015969591B:6F48Create Lister
015C695C19:6D6A 
015F695F1F:6229Create Menufield
016269621F:6E57Create NumberSet
016569651F:7629Create Stacked List
0168696818:5AE8 
016B696B18:628F 
016E696E18:6E55Create datefield
0171697118:6A9DCreate timefield
0174697418:6732Create boolfield (Checkbox)
0177697718:7724Create Numberfield
017A697A18:538EDraw field box
017D697D1E:6AF1Destroy resource block(same as free resource 01F2)
018069801E:6B0AExecute View
018369831E:6C5CDelete resource
018669861E:6D89Send Message
018969891E:6E3ADisable menu command
018C698C1E:6E90Enable menu command
018F698F1A:448BMessage box
0192699231:5A1F 
0195699531:5AB3 
0198699831:5377Numberfield picker
019B699B31:4000 
019E699E31:4038 
01A169A132:4393 
01A469A432:6230 
01A769A732:413D 
01AA69AA32:42A0 
01AD69AD1C:635F 
01B069B01C:5FB3 
01B369B31C:4000Get Weekday
01B669B61C:414C 
01B969B91C:4541 
01BC69BC1C:46A6Write Date
01BF69BF1C:46E3 Write Time
01C269C21C:43E7 
01C569C51C:49ED 
01C869C81C:4A43 
01CB69CB1C:4EA7Add Date
01CE69CE1C:5245 
01D169D11C:55B8Get Date difference
01D469D41C:57F9Get Day (of the month)
01D769D71C:5C19 
01DA69DA1C:5C6E 
01DD69DD1C:6F72 
01E069E01C:7058Press at Range
01E369E31C:7099Press at button
01E669E61C:71CAPress at button invert
01E969E91C:7385 
01EC69EC1A:4000 
01EF69EF1C:756CAllocate block
01F269F21C:7721Free resource block
01F569F51C:7800*Get resource ID list
01F869F818:4000Get event
01FB69FB18:42DAPut event
01FE69FE18:42FETest put event
02016A0118:434DClear event
02046A0418:42BDSet event mask
02076A0718:42D3Get event mask
020A6A0A18:436E 
020D6A0D18:43C1 
02106A1018:43C8 
02136A1318:4406 
02166A1618:46BC 
02196A1918:4705 
021C6A1C3A:404F 
021F6A1F3A:4000 
02226A223A:40AF 
02256A253A:4145 
02286A283A:4224 
022B6A2B3A:471C 
022E6A2E3A:4780 
02316A313A:4D15 
02346A343A:4E72Load Index Table
02376A373A:52F9Save Index Table
023A6A3A3A:5604Get Record Quantity
023D6A3D3A:5844Get Record Size
02406A403D:6D50 
02436A433A:5D72Read Record
02466A463A:5DF5Insert Record
02496A493A:6160Create Record
024C6A4C3A:64A8Delete Record
024F6A4F3A:64E7Modify Record
02526A523A:6669Change Record
02556A553A:676E 
02586A583A:6AFBGet password
025B6A5B3A:6B80Set password
025E6A5E3A:6C05 
02616A613A:6C46 
02646A643A:7666 
02676A673A:76C1 
026A6A6A3A:77A8 
026D6A6D3A:7861 
02706A703A:6CC4 
02736A733A:6D37 
02766A763A:6DEC 
02796A793A:6E6A 
027C6A7C3A:6F3B 
027F6A7F3A:711F 
02826A823A:71CD 
02856A853A:7248 
02886A883A:7392 
028B6A8B3A:73DB 
028E6A8E3A:7420 
02916A913A:7495 
02946A943A:755C 
02976A973A:75B0 
029A6A9A3A:7605 
029D6A9D3C:5BC4 
02A06AA03C:66D5 
02A36AA33C:6709 
02A66AA63C:67AD 
02A96AA93C:6548 
02AC6AAC3B:4000 
02AF6AAF3B:43BE 
02B26AB23B:447A 
02B56AB53B:46E7 
02B86AB83B:4714 
02BB6ABB3B:473CRead List Name
02BE6ABE3B:483DRead List Info
02C16AC13B:48FESave List Info
02C46AC43B:493D 
02C76AC73B:4A7D 
02CA6ACA3B:49DE 
02CD6ACD3B:4AB3 
02D06AD03B:4B63Read Category Info
02D36AD33B:4C1FSave Category Info
02D66AD63B:4C5E 
02D96AD93B:4CFF 
02DC6ADC3B:4D24 
02DF6ADF3B:4D47Read Field Item
02E26AE23B:4F8E 
02E56AE53B:4DC0Read Field Info
02E86AE83B:501FSave Field Info
02EB6AEB3B:5099 
02EE6AEE3B:5102 
02F16AF13B:51FBGet Record Status
02F46AF43B:525F 
02F76AF73B:52A7 
02FA6AFA3B:541A 
02FD6AFD3B:55A1 
03006B003B:5753 
03036B033C:4000 
03066B063C:4040 
03096B093C:4086 
030C6B0C3C:408D 
030F6B0F3C:4240 
03126B123C:5217 
03156B153C:5814 
03186B180F:48F1Convert Numeric to String
031B6B1B0F:4D6EConvert String to Numeric
031E6B1E0F:4D92 
03216B213B:6378 
03246B243B:6656 
03276B270F:59AD 
032A6B2A19:6FD9 
032D6B2D19:6FE6 
03306B3019:6FF9 
03336B3319:7179 
03366B361A:4295 
03396B391A:43C0 
033C6B3C1F:58B3 
033F6B3F19:704D 
03426B421E:6AB5Clear datefield date
03456B451E:6AD3Clear timefield time
03486B4819:7A23 
034B6B4B1B:49DD 
034E6B4E1B:54A4 
03516B5132:43B1 
03546B5432:4D21 
03576B571C:4312 
035A6B5A1C:4750 
035D6B5D1C:58B2 
03606B601C:5B65 
03636B6319:4000 
03666B6619:4052 
03696B6919:464CGet Data Size
036C6B6C19:4733 
036F6B6F19:4C0C 
03726B7219:538B 
03756B7519:5535 
03786B7819:7564 
037B6B7B19:7700 
037E6B7E1E:6F41 
03816B812F:42C7 
03846B843D:44F0 
03876B873A:47DE 
038A6B8A3A:4AC1 
038D6B8D3A:4CD1Allocate PIM Record Space
03906B903A:5A56Get App Preference Length
03936B933D:6D14 
03966B963A:6197 
03996B993C:64CF 
039C6B9C3A:78D6 
039F6B9F3B:4618 
03A26BA23B:49A1 
03A56BA53B:4E6C 
03A86BA817:4000Create textfield
03AB6BAB17:41BD 
03AE6BAE17:4329Draw Textfield
03B16BB117:4869Handle Textfield event
03B46BB417:505B 
03B76BB717:566C 
03BA6BBA17:4BD5 
03BD6BBD17:4E21 
03C06BC017:4F03 
03C36BC31B:6154 
03C66BC61B:627E 
03C96BC91B:52AD 
03CC6BCC1B:56B5 
03CF6BCF0B:5B34 
03D26BD21B:645C 
03D56BD518:7263Create starttime-endtimefield
03D86BD81B:4000 
03DB6BDB17:5CB8 
03DE6BDE17:5D67 
03E16BE117:69EF 
03E46BE417:59EB 
03E76BE716:4204 
03EA6BEA16:437E 
03ED6BED16:5D91 
03F06BF016:40C3 
03F36BF317:7181 
03F66BF616:4000 
03F96BF916:749A 
03FC6BFC16:7888 
03FF6BFF16:5E50 
04026C0216:4D6E 
04056C0516:458A 
04086C0816:5A73 
040B6C0B16:5BC7 
040E6C0E16:70DB 
04116C1116:6980 
04146C1416:6CE8 
04176C1716:60F7 
041A6C1A16:5113 
041D6C1D17:7AB2 
04206C2016:58E3 
04236C2316:589C 
04266C2616:5271 
04296C2916:7C13 
042C6C2C1A:67EA 
042F6C2F1A:6922 
04326C321A:712F 
04356C351A:7323 
04386C381A:6F25 
043B6C3B1A:6CC5 
043E6C3E1A:74A0 
04416C411A:4D09 
04446C441A:60CF 
04476C471A:572D 
044A6C4A0F:75B1 
044D6C4D0F:5E1A 
04506C500F:63AA 
04536C530F:6439 
04566C560F:709C 
04596C590F:72A6 
045C6C5C0F:78ED 
045F6C5F10:4391 
04626C6210:45C7 
04656C6510:45D9 
04686C6810:4935 
046B6C6B10:4F9B 
046E6C6E10:50FC 
04716C7110:5495 
04746C740E:7860 
04776C770E:72E6 
047A6C7A0E:75CA 
047D6C7D0E:40A1 
04806C8026:66BCGet system data address
04836C8301:61DE 
04866C863A:5660Is Over Filled
04896C893A:56F0 
048C6C8C3A:5757Is Alive Record
048F6C8F3A:57A7Get Full Record Quantity
Following functions are obselete for ROM versions v1.00 and v1.004
Using these function will cause Avigo to reset.
04926C920:0Read table name
04956C950:0Save table name
04986C980:0Get private state
049B6C9B0:0Set private state
049E6C9E0:0Get table count
04A16CA10:0Read Field info
04A46CA40:0Save field info
04A76CA70:0Get Free Table ID

Calling banked functions.

There are two possible methods to call a banked function. For a CALL $3000. The BC register must hold the absolute address of the banked function table entry.
When a CALL $3003 is used. The BC register holds the index offset to the banked function entry.
Example:

LD	BC,$018F	;Draw message box
CALL	$3003		;function by index

Is the same as:

LD	BC,$698F	;Draw message box
CALL	$3000		;function by index

0009 Get program ID

Get ID number for application at bank HL. This ID number is required for preference functions. On return of this function the A register holds the ID number.

Remark:
It is possible for a application to have multiple IDs if that application greater than 16K. For each 16K bank you can claim a ID (Usefull if 256 bytes for preferences is not enough).
Example:

	CALL	$000F		;Get ROM bank (Expecting this code in ROM)
	LD	BC,$0009
	CALL	$3003
	LD	H,0		;HL=A (most functions requiring the ID expect it in HL)
	LD	L,A
	LD	(PROG_ID),HL	;store ID

0390 Get preference length

Get preference lenght of application with ID HL. Returns with preference lenght in HL register.
A zero lenght indicates that there are no preferences for that application.
Example:

	LD	HL,(PROG_ID)	;Program ID
	LD	BC,$0390	;Get prefs lenght
	CALL	$3003
	LD	A,H
	OR	L
	JP	Z,NO_PREFS	;HL=Lenght, HL=0 No Prefs

0003 Save preference

Save prefereces of application with ID HL. DE register points to the preferences to be saved and (SP+2) = lenght.
On return HL = $FFFF if an error occured or HL = 0 for no error.

NOTE:
DE must point somewhere in RAM (above $7FFF). If just one byte of the preferences is changed. All preferences must be resaved.
Example:

	LD	HL,LENGHT	;Max lenght = 256
	LD	DE,$8000	;location of the new preferences
	PUSH	HL
	LD	HL,(PROG_ID)	;Program ID
	LD	BC,$0003	;Save preferences
	CALL	$3003
	POP	BC
	LD	A,H		;test for error
	OR	L
	JP	NZ,ERROR

0000 Read preference

Read preferences of application with ID HL. (SP+4) = Length and (SP+2) = RAM address to copy to. DE is offset to first preference byte to copy.
On return HL = $FFFF if a error occured or HL=0 for no error.

NOTE:
Normaly DE = 0 and lenght = length of preferences.
It is also possible to read the preferences partially. Reading the 10th byte. Requires DE = 10 and length = 1.
Example:

	LD	HL,LENGHT	;Preference length or bytes to read
	PUSH	HL
	LD	HL,$8000	;RAM address to copy prefs to.
	PUSH	HL
	LD	DE,0		;copy from 1st pref byte
	LD	HL,(PROG_ID)	;application ID
	LD	BC,$0000	;Read preferences
	CALL	$3003
	POP	BC
	POP	BC
	LD	A,H		;HL=FFFF ERROR
	OR	L		;HL=0  OK
	JP	NZ,ERROR

0006 Delete preference

Delete preferences for application with ID HL.
On return HL = $FFFF if a error occured or HL=0 for no error.
Example:

	LD	HL,(PROG_ID)	;Program ID
	LD	BC,$0006		;Delete Preferences
	CALL	$3003
	LD	A,H		;HL=FFFF ERROR
	OR	L		;HL=0  OK
	JP	NZ,ERROR

Get and Set private state.

These functions are no longer supported for ROMs V1.00 and higher. To Get and set the private state the system variable holding the private state must be accessed directly.
System variable at $F153 is the private state. A direct read or write to this system variable gets or sets the private state.
Valid values : 0 = HIDE PRIVATE, 1 = SHOW PRIVATE

Example:

XOR	A		;A = 0
LD	($F153),A	;Set private state to hide private

0258 Get password

When calling this function HL must point to a 9 byte space to which the password is copied.

025B Set password

When calling this function HL must point to the 9 byte string (in RAM) of the new password. Note that the password can be max 8 characters in length followed with a 0 byte as a terminator.
Valid characters are SPACE,'0'-'9','A'-'Z'(No lowercase!) and the symbols '.',',','-','/'
01EF
Allocate block

Allocates a block in resource memory for a object (buttons,deskbox, etc.). On entry E reg is ID number, HL = required size for object (SP+2) Allocation method. On exit HL = 0 if block couldn't be created or HL points to the created block.
Note. Create Button, deskbox etc. call this function. It is not required to call this function if you create a deskbox or so.
Example (as used by create deskbox):

LD		L,1			;=1: create new entry, =0: recycle deleted entry
PUSH	HL
LD		E,'D'		;Deskbox ID
LD		HL,$42		;Size of deskbox object
LD		BC,$01EF	;Allocate Resource
CALL	$3003
POP     BC
LD		A,H			;Test for error
OR		L
JP		Z,out_of_memory

_Reference index_ _Back to top_ _Main index_ Blinky's Avigo Page (C) 1999 by Edwin Blink.