MDFS::System.Library.BLib Search

BBC BASIC Programming Libraries

Library Documentation Functions  
AddrOf
AddrOf.txt
PROCAddrOf_* Find the address of a variable, provides the functionality of ^identifier found in BBC BASIC for Windows, PDP-11 BASIC and the BasicPlus extensions to ARM BASIC.
BASIC
BASIC.bbc
    FNBASIC_RunAs
  FNBASIC_SizeOfReal
  FNBASIC_Type
  FNBASIC_Ver
Functions to find various information about the running BBC BASIC.
BBCFile
BBCFile.txt
PROCBBC_WrStr()
PROCBBC_WrInt()
PROCBBC_WrReal()
  FNBBC_Rd()
Read and write data files in Acorn BBC BASIC format. Previously the 'FastIO' library to speed up file access on NFS, but ironically, is actually slower on all other filing systems! However, the library is useful to read and write BBC data files on other platforms. See also DataFile for similar VisualBasic and 'C' code.
BFont
BFont.bbc
  PROCBFont_Load()
PROCBFont_Save()
Functions to load and save bitmaps fonts.
Graphic.Circle
  PROCcircle() The Circle library draws filled or outline full or partial circles.
Choices.bbc
    FNChoices_Find()
PROCChoices_Rd()
PROCChoices_Set()
 
Close
  PROCClose_All  
CmdLine
CmdLine.bbc
CmdLine.txt
  FNcl() Command line parsing. Updated to process "quoted" strings correctly.
Date
Date.bbc
Date.txt
PROCDate_ToOrd()
PROCDate_FromOrd()
  FNDate_Since()
  FNDate_DayOfWeek()
  FNDate_FromDay()
  FNDate_FromMonth()
  FNDate_ToDay()
  FNDate_ToMonth()
  FNDay()
  FNMon()
The Date library contains functions for converting dates between a 5-byte centisecond count and real-world date and time values and for converting between date numbers and english language date names.
Delay
  PROCDelay()  
DisAssem
DisCode.txt
  FNDis_Name()
  FNDis_Code()
Disassembly functions for various CPUs and generic OSWORD disassembly interface.
extension
  FNext()  
FastString
    FNrd()
PROCwr()
Read and write strings from and to files using fast file I/O.
FDate
FDate.txt
  FNf_date()
  FNf_time()
PROCf_date()
PROCf_time()
The FDate library contains functions for extracting and creating dates and times in filing system format.
FInfo
FInfo.txt
  FNf_info()
  FNf_date()
  FNf_time()
PROCf_date()
PROCf_time()
The FInfo library contains functions for reading full file metadata infomation (creation and modification times and dates, account data, etc) on filing system objects and for translating dates to and from filing system format.
File
File.bbc
File.txt
PROCf_init
  FNf_root()
  FNf_leaf()
  FNf_path()
  FNf_ext()
  FNf_noext()
  FNf_fullpath()
PROCf_cdir()
  FNf_info()
  FNf_name()
  FNf_openin()
  FNf_openout()
  FNf_openup()
  FNfs
Platform-independant functions to access files and manipulate filenames and pathnames.
FileIO
Generic/FileIO
    FNfile()
PROCgbpb()
  FNgbpb()
  FNgbpb8()
  FNargs()
  FNargsA()
  FNfs
Functions to call various file entry points. Generic/FileIO is a generic version modified to be platform-independant and works on BBC, RISC OS, DOS, UNIX and Windows.
HiBASIC
HiBASIC.txt
  FNhimem0
  FNhimem1
  FNhimem2
The HiBASIC library provides functions to allow more efficient use of memory on the 6502 second processor when running BBC BASIC without needing to run HiBASIC.
IntToTxt
IntToTxt.bbc
    FNIntToTxt() Converts integers into an english language string.
Keyboard
Keyboard.bbc
Keyboard.txt
  FNKBD_Get
  FNKBD_Inkey()
The Win/Keyboard library provides functions to replace GET and INKEY on Window™ that return regular unique top-bit-set values for function and editing keys, and also returns distinct values for keys pressed with Shift, Control and Alt.
MAlloc
MAlloc.bbc
MAlloc.txt
  FNm_alloc()
  FNm_free()
  FNm_realloc()   FNm_zalloc()
MAlloc provides functions and procedures to claim and release blocks of memory in the BASIC heap. The library keeps track of released memory and tries to reuse it as efficiently as possible.
Memory
Memory16b
MemAddrs
  FNrm()
PROCwm()
Function and procedure to read from and write to any banked or paged memory on the BBC series of computers.
Messages.bbc
    FNMessages_Rd() Message translation.
MOS
    FNbyte()
  FNfx()
Provides wrappers around OSBYTE allowing them to be easily called from BASIC.
Mouse
  PROCPointer_Init
PROCPointer_Draw
PROCPointer_UntilAction
PROCMouse_Init
PROCMouse_UntilAction
PROCMouse_Read
 
Net
Net.txt
  FNNet_Tx()
  FNNet_TxCount()
  FNNet_RxOpen()
  FNNet_Rx()
  FNNet_RxRead()
PROCNet_RxKill()
  FNNet_Err()
  FNNet_Stn()
  FNNet_StnFixed()
  FNNet_StnNum()   FNNet_Info()
The Net library provides network communication functions to allow a program to communicate with other machines via a connected network. The physical network link or links used by the transmitted messages is irrelevant, as long as the link is accessed through the standard Acorn Networking system calls.
NetFS
Generic/NetFS
NetFS.txt
  FNNetFS_Op()
  FNNetFS_OpN()
The NetFS library provides functions to communicate with a network file server with the Network Filing System file server protocol interface. The physical network link or links used by the transmitted messages is irrelevant, as long as the link is accessed through the standard Acorn Networking system calls. Generic/NetFS is a modified version that contains code to work around bugs in the RISC OS 3.xx NetFS.
NetUtil
NetUtil.txt
  FNNet_Addr()
  FNNet_Ping()
  FNNet_Type()
Networking support functions to do things such as looking up users, finding if a station is present, etc.
Number
Number.bbc
Number.txt
  FNh0()
  FNh()
  FNd0()
  FNd()
  FNo0()
  FNo()
  FNb0()
  FNb()
  FNdrv()
  FNDrv()
Functions to convert numbers to various fixed-width strings.
Path.bbc
Path.txt
  FNf_root()
  FNf_leaf()
  FNf_path()
  FNf_noext()
  FNf_fullpath()
Functions manpipulate DOS/Windows filenames and pathnames.
Pathname
    FNPath_Name
  FNPath_Full
  FNPath_Lib
  FNPath_LibFull
  FNPath_URD
  FNPath_URDFull
Reads the full pathname of the current directory, the current library and the user root directory.
Phone
Phone.bbc
Phone.txt
  FNPhone_FromStr()
  FNPhone_ToStr()
  FNPhone_ToStrF()
The Phone library provides functions to display, store and retrive UK telephone numbers in the full 01 to 09 ranges.
PhoneG
PhoneG.bbc
Phone.txt
  FNPhone_FromStr()
  FNPhone_ToStr()
  FNPhone_ToStrF()
The PhoneG library provides functions to display, store and retrive pre-2009 UK geographical telephone numbers (01 and 02 ranges).
ProgEnv
ProgEnv.bbc
ProgEnv.txt
  FNOS_GetEnv
PROCos()
PROCexit()
ProgEnv provides functions to determine the running program's environment and command line parameters, to call other programs, exit to the calling program and set the exit return value.
RunPath
    FNPath_Run Returns the path to the running program.
Reg.bbc
Reg.txt
  FNReg_Rd()
PROCReg_Wr()
Functions to read and write strings in the HKEY_CURRENT_USER part of the Windows™ registry.
Registry.bbc
Registry.txt
PROCRegistry_Init
  FNRegistry_Rd()
  FNRegistry_RdBig()
  FNRegistry_RdInt()
  FNRegistry_RdStr()
PROCRegistry_Wr()
PROCRegistry_WrBig()
PROCRegistry_WrInt()
PROCRegistry_WrStr()
  FNRegistry_List()
  FNRegistry_Keys()
  FNRegistry_Vals()
  FNRegistry_Info()
  FNRegistry_Del()
General functions to read and write any part of the Windows™ registry.
Sort
Sort.bbc
  PROCSort_Str()  
Socket
Socket.txt
PROCSocket_*() Draft Ethernet Socket library.
String
String.bbc
    FNs()
  FNuc()
  FNlc()
Functions to convert strings to upper and lower case and to strip spaces.
StringIO
    FNrd()
PROCwr()
Read and write strings from and to files.
TextIO.bbc
  PROCWin_TextIO Attach BBC BASIC I/O to Windows console.
Time
    FNtime
  FNTime
PROCtime
  FNdate
  FNDay()
  FNMon()
  FNDate_DayOfWeek()
Read RTC time, correcting for year overflow, etc.
Tokenise
Tokenise.bbc
Tokenise.txt
  FNTokenise_()
The Tokenise library provides functions for tokenising BBC BASIC program code. It runs on 6502, Z80, 32000, RISC OS, DOS and Windows BBC BASIC.
Variable
Variable.bbc
Variable.txt
PROCVar_Assign() Dynamically create variables and assign values to them.
BasLib.zip
Names.txt
All BASIC libraries in one download. list.htm
Unsorted
  Some unsorted libraries. These have been tinkered with over the years are in general are in an unfinished state. In particular, they are not named correctly, may not have appropriate entry parameters and may have undefined dependancies. They are completely undocumented, but are made available if they are useful.
Testing
   

HOME   DOCUMENTS   LINKS   RECENT CHANGES   BROWSE FILES
Hosted by Force9 Internet - Authored by J.G.Harston - Last update: 04-Dec-2009