Internal_Commands
Created by: phil, Last modification: Mon 04 of Jul, 2011 (16:45 UTC)
FLOS 5.82 INTERNAL COMMANDS - FULL DESCRIPTIONS:
B - Bank select (ie: page in 1 of 15 32KB banks at Z80 address $8000-$FFFF)
Use: B n (n = 0 to E)
C - Copy bytes in memory (from currently selected bank)
Use: C start_address end_address destination_address [dest bank]
CD - Change Directory / Drive
Use: CD .. (go to parent dir)
CD / (go to root dir)
CD subdir (change to subdir)
CD VOLn: (change to volume n)
CD VOLn:/hats/berets (change volume and subdir)
CD %xyz (change to assigned directory)
Notes: CD without any arguments shows the current path
CLS - Clear OS screen
Use: CLS (no args)
COLOUR - Changes the FLOS colour scheme
Use: COLOUR pen [paper] [border] [cursor]
Notes: 'pen' = $nm where 'n' is the font character's background colour
and 'm' is the foreground colour as per the following table:
0 - transparent (shows "paper" colour)
1 - black
2 - blue
3 - red
4 - magenta
5 - green
6 - cyan
7 - yellow
8 - white
9 - dark grey
a - mid grey
b - light grey
c - orange
d - light blue
e - light green
f - brown
: [Paper], [border] and [cursor] are 12 bit $RGB values
D - Disassemble Z80 code
Use: D start_address end_address
Note: To aid debugging, it is possible to cursor up to a line of
code, edit the hex bytes and press enter to update the
disassembly listing.
DEL- Delete File
Use: DEL filename (name must be a file, not a dir)
DIR - Show Directory Listing
Use: DIR (no args)
EXEC - Execute a script
USe: EXEC filename (note: scripts cannot execute further scripts)
F - Fill Memory
Use: F start_address end_address fill_byte
FORMAT - Formats *entire disk* to FAT16 (no partition table)
Use: FORMAT device_name (EG: SD_CARD) [label]
(Note: You cannot format individual partitions with this
internal format command. "Device_name" refers to an entire
media type, as specified by its driver. As there is only one
driver installed in FLOS by default, the device_name is
normally SD_CARD)
G - Goto location (IE: Call Z80 routine)
Use: G address
H - Hunt in memory for hex bytes
Use: start_address end_address byte1 [byte2 byte3 etc]
LB - Loads bytes to RAM from currently selected drive
Use: LB filename address [bank]
Notes: No path is allowed in the filename
When the load address goes beyond address $FFFF, bytes are
loaded into the next bank (ie: the address wraps around to $8000
and the bank count increases)
M - Show memory as hex bytes
Use: M address
Note: You can edit the displayed data and press return to update
it in memory as the string is displayed with the : prefix
MD - Make new directory
Use: MD newsubdir
MOUNT - Rescans for connected drives
Use: MOUNT (no args)
R - Show registers - Updated on exit from external programs or NMI exception.
Use: R (no args)
RD - Remove directory
Use: RD subdir (name must be a dir, not a file)
RX - Receive (to RAM) data from serial comms port (and optionally run as code)
Use: RX filename address [bank]
Notes: Filename can be * for wildcard.
If filename is "!" the file is assumed to be
code and executed when downloaded. In this case,
the file will be loaded to the address and bank
specified in the location header (if present),
otherwise it will be loaded to $5000 (a load
address cannot be specified on the command line).
SB - Save bytes from RAM to currently selected drive
Use: SB filename address length [bank]
Notes: No path is allowed in the filename
When the length + address extends beyond address $FFFF,
bytes are fetched from the next bank (ie: the address wraps
around to $8000 and the bank count increases)
T - Show memory as ASCII text
Use: T address
Note: you can edit the displayed data and press return to update
it in memory as the string is displayed with the > prefix)
TX - Transmit bytes from RAM to serial comms port (using Serial Link app)
Use: TX filename address length [bank]
VERS - Shows the OS and Hardware version numbers
Use: VERS (no args)
VOLx: - Change volume (without changing subdir)
Use: VOLx: where x = 0 to 9
> - Put text in memory
use: T address "text"
: - Put hex bytes in memory
Use: address byte1 [byte2 etc]
? - List commands
Use: ? (no args)
< - Put hex bytes in memory and disassemble
Use: < address hexbytes