![]() |
![]()
| ![]() |
![]()
NAMEdescription of file format used by z80-mon for bank layout DESCRIPTIONThe file compounds of lines each is either a comment line or a bank- or a page description. A comment line starts with a # and may appear anywhere in the file. A line containing a bank description consists of the following 4 entries: access_type bank_id log2_size bank_name. A line containing a page description consists of these 4 entries: either offset or bank_id followed by port_no mask and a non empty list of bank_ids. All bank description lines must preceed the page description lines and must be ordered ascending by their unique bank_id. The following page description lines are ordered ascending by their first item which is typically an offset or in the case of a virtuel bank a bank_id. If lines have the same first entry then they must be ordered ascending by their port_id with - regarded less than any other port_id. And in the case even their second entries equals each other, then these lines will be ordered by their mask. A list of bank_ids is an ascending sequence of bank_ids separated only by , (comma), not any whitespace. access_type
bank_id
log2_size
bank_name
offset
port_no
mask
Each used bank_id in a page description must be defined in a previous bank description. Summarizing, this file describes how the banks are mapped to memory or other (virtuel) banks. If a byte value is put to a port which has a corresponding page description then a mapping occurs if the bank_id matches the value and-ed with the mask of the port. Therefore page description lines with the same port_no should have different bank_id s for a unique mapping. The default bank_id of a page is the one with the lowest bank_id. This is selected at hardware initialisation and after a bank reset. SEE ALSOz80-memory(5)
|