LSXDODGERS LDMAP

From Z80 Machines Wiki
Jump to: navigation, search

LDMAP

· LSX-Dodgers · Memory map

0000-00FF System Scratch Area

0100-CC05 TPA (Transient Program Area)

CC06-FFFF system area · System · Scratch · Area

It can be said that it bridges the system and user program in the area from $00 address to$ FF address The destination of the system call is also in this area. Also, the contents of the arguments to be passed to the command are also stored in this area It will be stored.


TPA (Transient Program Area) Beginning from address $100, up to 1 byte before the address indicated by the contents of addresses 6 to 7 corresponds to TPA It is an area called. This area can be freely used by user programs. The addresses 6 to 7 indicate the destinations of system calls. · System area The address area higher than the TPA is the area used by the system, and the program freely uses it should not do.


· System · Scratch · Area (Common part with MSX - DOS)

$0000 Warm Boot

$0005 System call

$0006 Start address of system area (final address of TPA + 1)

$005C Default FCB part 1

$006C Default FCB part 2

$0080 Default DTA

※When an external command is executed From $5C: Processing the first parameter as file name *1 From $6C: Process the second parameter as file name *1 $80: Number of characters on the command line From $81: Contents of command line *1

The storage format is the drive number (1 byte) of the same format as FCB + file name (8 bytes +) Extension (3 bytes)

NMI can not be used because $0066 overlaps the default FCB. · System · Scratch · Area (part different from MSX - DOS)

$0003 Model ID (Most significant bit is DPB level)

$0004 LSX-Dodgers ID ($1D is stored for LD)

$000B System call table & upper address of system work

$000F JP (HL)

$0018 BIOS-ROM call (X1 turbo series only)

$0038 Warm Boot

$0057 Drive that executed the external command

$0058 Path where the external command was executed

$005A LD version (stored in BCD) Model ID X 1: $80 (Most significant bit is DPB level)

· BIOS-ROM call

Call (RST 18H) by inserting the BIOS-ROM call address into the BC register. Same as turboBASIC or turboSWORD etc

· System area

C600-CC05 Initial program (TPA will be activated after startup)

CC06-EBFF LD main body + command shell

EC00-EC7F System Call Table

EC80-ECFF system work area

ED00-EDFF drive parameter block (DPB) (A: to H :)

EE00-F9FF FAT buffer

FA00-FDFF data buffer

FE00-FEFF leading key input buffer

FF00 to FFFF 1 line input key buffer & stack area

·Note

Since LSX-Dodgers employs a simple court writing, the content of the FAT buffer and data buffer If it is destroyed, the disc will be affected.