home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p078 / 7.img / TUTOR.PLB / MEMORY3.PLD < prev    next >
Encoding:
Text File  |  1990-12-12  |  1.5 KB  |  27 lines

  1.                CUSTOM MEMORY DECODER AS HEXADECIMAL RANGES
  2.  
  3. This is the same logic defined in files MEMORY1.PLD and MEMORY2.PLD,
  4. except here it is defined as a table of hexadecimal ranges.  Notice how
  5. close the specification is to the original problem to be solved.
  6.  
  7. |?  in:ADR[19..12], io:(SMEM, EGA, MDA, CGA, DISK, IO, EM, ROM)
  8. |
  9. | Table:  ADR[19..12] -> SMEM, EGA, MDA, CGA, DISK, IO, EM, ROM
  10. |
  11. ||  Input Range     Output         Usage                Addr   Lth
  12. |
  13. | { 000h .. 09Fh -> 10000000b      |System memory          0K  640K
  14. |   0A0h .. 0AFh -> 01000000b      |EGA area             640K   64K
  15. |   0B0h .. 0B0h -> 00100000b      |MDA area             704K    4K
  16. |   0B1h .. 0B7h -> 00000000b      |Unallocated          708K   28K
  17. |   0B8h .. 0BBh -> 00010000b      |CGA area             736K   16K
  18. |   0BCh .. 0BFh -> 00000000b      |Unallocated          752K   16K
  19. |   0C0h .. 0C7h -> 00000000b      |Unallocated          768K   32K
  20. |   0C8h .. 0CBh -> 00001000b      |Fixed disk           800K   16K
  21. |   0CCh .. 0CFh -> 00000100b      |Peripheral i/o       816K   16K
  22. |   0D0h .. 0DFh -> 00000010b      |Expanded memory      832K   64K
  23. |   0E0h .. 0FFh -> 00000001b      |Read only memory     896K  128K
  24. |   } 
  25.  
  26.                                                                                                                                                                                                                                                              
  27.