+現実の Nereid はイーサネット/メモリ/USB の複合拡張ボードで、
+このうちメモリは、メインメモリの増設に使える他、
+メインメモリとして使わなかった領域をバンクメモリとして使うことも出来ます。
+nono ではこの Nereid の機能のうちイーサネット (RTL8019AS)
+とバンクメモリのみサポートします。
+メインメモリの増設機能はエミュレータでは意味がないので実装しません。また
+USB (SL811HS/T) の実装予定はありません。
+
Nereid in the real world is a combined Ethernet/memory/USB expansion board.
+Of these, the memory can be used to expand main memory,
+and areas not used for the main memory can be used as bank memory.
+nono supports only ethernet (RTL8019AS) and bank memory among
+the functions of the Nereid expansion board.
+Main memory expansion is not supported because it's meaningless on emulators.
+Also, USB (SL811HS/T) is not planned for implementation.
+
+Nereid は DIPSW6,7 によりアドレス・割り込みベクタの組を2通り指定できるため、
+2枚まで同時に運用することが出来ます。
+本来 SW6 と SW7 は (衝突さえしなければ) 任意に組み合わせることが可能ですが、
+nono では簡便のためボード #0 は SW6,7 が OFF、
+ボード #1 は SW6,7 が ON と固定しています。
+
Since Nereid can set to two different combinations of addresses and
+interrupt vectors by DIPSW,
+so up to two boards can be operated at the same time.
+Originally, SW6 and SW7 can be arbitrarily combined
+(as long as they don't collide), in nono however, for simpility,
+SW6 and SW7 are fixed to be OFF on board #0, and
+SW6 and SW7 are fixed to be ON on board #1.
+
+
+ | #0 (nereid0-*) | #1 (nereid1-*)
+ |
|---|
ベースアドレス・割り込みベクタ
Base address and interrupt vectors
+ | $ece300,$f9,$fb (SW7=OFF)
+ | $eceb00,$f8,$fa (SW7=ON)
+ |
バンクメモリウィンドウ
Bank memory window
+ | $ee0000 (SW6=OFF)
+ | $ef0000 (SW6=ON)
+ |
+
+バンクメモリは、メインメモリとして使わなかった領域を使用します。
+そのため実機でもバンクメモリの容量は DIPSW のメインメモリ割り当て設定
+(SW1-5) に依存します。
+nono に関係する結論だけでいうと、
+メインメモリへの割り当てを一切行わない場合はバンクメモリは 16MB 確保でき、
+メインメモリへの割り当てをいくらかでも行うとバンクメモリは 4MB となります。
+設定の
nereidN-ram-size はこの部分を指定していることになります。
+またこの容量とは独立に SW8 でバンクメモリの有効・無効を指定できますので、
+
nereidN-ram-size が 0 (以下) というのは SW8
+でバンクメモリを無効にしたことに相当します。
+
Bank memory uses memory areas not used as the main memory.
+So the bank memory size depends on the main memory settings (SW1-5).
+As a result,
+only if you don't allocate any memories to main memory,
+the bank memory can be allocated 16MB.
+Otherwise, the bank memory will be allocated 4MB.
+Thus, nereidN-ram-size specifies this value.
+Also, SW8 specifies enable/disable of the bank memory regardless of the size,
+nereidN-ram-size = 0 (or less) means disabling the bank memory.
+
+