Category:GR8NET BASIC
This page was last modified 17:41, 19 April 2020 by Mars2000you. Based on work by Rderooy and Eugeny Brychkov.

Contents

Description

GR8NET BASIC is provided with the GR8NET cartridge created by AGE Labs. This BASIC extension adds a large amount of instructions, most of them are related to Network communication for MSX computers.

Instructions

It extends the 4 following instructions: CLOSE, LOAD, MERGE and OPEN and adds 97 new instructions. For details, check the manual: http://rs.gr8bit.ru/Documentation/GR8NET-manual.pdf

On this page, these instructions are classified according to their purpose. For a general overview of all instructions in alphabetical order, see this page : GR8NET BASIC Instructions.

Note: CALL can be replaced by the character underscore (_). A space is not required after this character. See CALL for more info.

Communication tools

Instruction Generation Description
_NETTELNET MSX2 Perform telnet session using TCP
_NETTERM MSX1 Perform terminal session using TCP


Configuration management

Instruction Generation Description
_NETCFG MSX1 Interactive GR8NET configuration
_NETEXPRT MSX1 Create BASIC program containing GR8NET configuration data
_NETIMPRT MSX1 Fill GR8NET system variables with data from BASIC program created by NETEXPRT
_NETSAVE MSX1 Save current configuration into ROM configuration page


Detection and identification

Instruction Generation Description
_NETGETDA MSX1 Get default adapter number and list of active adapters
_NETSETDA MSX1 Set default adapter number


FPGA serial flash chip management

Instruction Generation Description
_FLERASE MSX1 Erase a sector in the FPGA serial flash chip
_FLINFO MSX1 Display information about flash chips installed
_FLLIST MSX1 List contents of the serial flash chip
_FLUPDATE MSX1 Update contents of the serial flash chip (replaced _NETFPGAUPD)


GR8cloud management

Instruction Generation Description
_NETGETCLOUD MSX1 Print GR8cloud virtual volume status onto the screen
_NETSETCLOUD MSX1 Set up GR8cloud virtual volume access


GR8NET firmware update

Instruction Generation Description
_NETFWUPDATE MSX1 Update the firmware – contents of the onboard flash ROM BIOS chip
_NETFPGAUPD MSX1 Update the FPGA (EPCS chip) firmware (discontinued)


GR8NET RAM buffer / machine RAM access

Instruction Generation Description
_NETDUMP MSX1 Dump data from adapter’s buffer RAM
_NETGETMD MSX1 Get 32-bit double word from memory converted to double-precision and stored in variable
_NETGETMEM MSX1 Read 4 consecutive bytes (32-bit data) from the memory
_NETLDBUF MSX1 Load data from main memory to adapter’s buffer RAM
_NETLDRAM MSX1 Un-load data from adapter’s buffer RAM to main memory
_NETSETDM MSX1 Convert double-precision value to 32-bit double word and store this dword into memory
_NETSETMEM MSX1 Write 4 consecutive bytes (32-bit data) into the memory
_NETRCHKS MSX1 Calculate simple 16-bit checksum on the buffer RAM contents


GR8NET RAM disk

Instruction Generation Description
_DSKCFG MSX1 Obtain or manage state of disk image
_DSKFMT MSX1 Initialize RAM-disk image
_DSKGETIMG MSX1 Get current disk image location
_DSKLDIMG MSX1 Load image into the RAM disk area in GR8NET buffer RAM
_DSKSETIMG MSX1 Set disk image location
_DSKSTAT MSX1 Get/set state of the disk subsystem
_DSKSVIMG MSX1 Save RAM-disk image onto SD-card


Graphics-related routines

Instruction Generation Description
_NETBITOV MSX1 Move icon image from GR8NET buffer to VRAM
_NETBTOV MSX1 Move binary data from the GR8NET buffer to VRAM


Help, diagnostics and status

Instruction Generation Description
_HELP MSX1 Display top level of the instructions
Can be replaced by two underscores: __
_NETCODE MSX1 Return communication status and HTTP response code
_NETDIAG MSX1 Turn built-in diagnostic output on or off
_NETGETMMV MSX1 Get memory manager values
_NETHELP MSX1 Get help on the GR8NET instructions and their parameters
_NETSETMMV MSX1 Set memory manager value
_NETSTAT MSX1 Display status information about the adapter
_NETSYSINFO MSX1 Get system information and system performance data
_NETVER MSX1 Get infos about firmware version


Multimedia management

Instruction Generation Description
_NETFKOPLLR MSX1 Fake OPLL ROM into mapped RAM
_NETGETCLK MSX1 Get GR8NET or MSX bus clock frequency
_NETGETMIX MSX1 Set mixer configuration
_NETGETOPL MSX1 Get status of built-in OPLL/Y8950 and initial setting of sample RAM size
_NETGETPSG MSX1 Get built-in PSG properties
_NETPLAYBUF MSX1 Play wave from GR8NET RAM
_NETPLAYVID MSX1 Play video file from SD-card
_NETPLAYWAV MSX1 Play wave or MP3 file, or listen to internet radio
_NETSETCLK MSX1 Set clock source for the GR8NET clock speed calculation
_NETSETMIX MSX1 Set mixer configuration
_NETSETOPL MSX1 Enable or disable built-in OPLL/Y8950, control doubling of output
amplitude, and set sample RAM size
_NETSETPSG MSX1 Set built-in PSG properties
_NETSNDVOL MSX1 Set or display GR8NET audio volume levels


Network file support

Instruction Generation Description
_NETSNDDTG MSX1 Send datagram / pending data to the remote host
CLOSE MSX1 Close network stream and free the network socket
OPEN MSX1 Open network stream in HTTP, TCP, UDP or IP RAW modes
(other BASIC I/O instructions) MSX1 PRINT#, PRINT# USING, LINEINPUT#, INPUT#, INPUT$, MAXFILES,
LOC(f), LOF(f), EOF(f), LOAD, MERGE


Network management

Instruction Generation Description
_NETCDTOF MSX1 Copy DHCP configuration into fixed IP address configuration
_NETDHCP MSX1 Perform DHCP discovery and dynamic configuration
_NETDNS MSX1 Get current configured domain name server (DNS) IP address
_NETFIX MSX1 Configure fixed IP address information into network system
_NETGETDNS MSX1 Get fixed IP address mode DNS IP address
_NETGETGW MSX1 Get fixed IP address mode gateway IP address
_NETGETIP MSX1 Get fixed IP address value
_NETGETMASK MSX1 Get fixed IP address mask
_NETGW MSX1 Get current configured gateway
_NETIP MSX1 Get current configured adapter’s IP address
_NETMASK MSX1 Get current configured adapter’s subnetwork mask
_NETSETDNS MSX1 Set fixed configuration DNS IP address
_NETSETGW MSX1 Set fixed configuration gateway IP address
_NETSETIP MSX1 Sets fixed configuration IP address value
_NETSETMASK MSX1 Set fixed configuration IP address mask
_NETVARRWTH MSX1 Set networking RX window threshold
_NETVARUDTO MSX1 Set UDP packet timeout for DHCP and DNS operations


Network or SD-card access

Instruction Generation Description
_NETBLOAD MSX1 Load binary file from the SD-card or remote web server using HTTP
_NETBROWSE MSX1 Invoke internet and SD-card browser in BASIC
_NETGETHOST MSX1 Get type of default URI structure, network host name and IP address
_NETGETNAME MSX1 Get network or SD-card resource’s file name
_NETGETPATH MSX1 Get network or SD-card resource’s path
_NETGETPORT MSX1 Get communication port numbers
_NETGETQSTR MSX1 Get query string set up for network resource
_NETRESST MSX1 Get status of the SD-card or network resource
_NETSETHOST MSX1 Set host name/device to access, and perform simple DNS query
for network resource if needed
_NETSETNAME MSX1 Set network or SD-card resource’s file name
_NETSETPATH MSX1 Set network or SD-card resource’s path
_NETSETPORT MSX1 Set communication port numbers in the default URI structure
_NETSETQSTR MSX1 Set query string for network resource processing
_NETVARBRSTR MSX1 Get URI string of the location selected by user within the browser
_NETVARBSIZE MSX1 Get size of bloaded data in bytes


Operating mode management

Instruction Generation Description
_NETGETMAP MSX1 Get current memory mapper type and some other operating flags
_NETSETMAP MSX1 Set specified memory mapper type and reboot
_NETTGTMAP MSX1 Set target memory mapper configuration to switch to at the startup


SD-card low level access

Instruction Generation Description
_NETSDCRD MSX1 Read sectors from the SD-card


System time management

Instruction Generation Description
_NETGETNTP MSX1 Get NTP server properties within fixed IP address configuration
_NETGETTSHN MSX1 Get time server host name
_NETNTP MSX1 Get effective configuration of NTP server
_NETSETNTP MSX1 Set NTP server properties within fixed IP address configuration, and time setting flags
_NETSETTSHN MSX1 Set time server host name
_NETTSYNC MSX1 Display and synchronize system time


Pages in category "GR8NET BASIC"

This category contains only the following page.

G