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

  1.                 CUSTOM MEMORY DECODER AS BOOLEAN EQUATIONS
  2.  
  3. This memory decoder is for a microcomputer with one megabyte of memory,
  4. the lowest memory address being hexadecimal 00000, the highest being
  5. hexadecimal FFFFF.  The memory is organized into blocks like this:
  6.  
  7.     Memory Address
  8.   -------------------   Length     Usage
  9.   Hexadecimal     Dec
  10.  
  11.   00000..9FFFF      0K    640K      System memory     (1)
  12.   A0000..AFFFF    640K     64K      EGA area          (2)
  13.   B0000..B0FFF    704K      4K      MDA area          (3)
  14.   B1000..B7FFF    708K     28K      Open
  15.   B8000..BBFFF    736K     16K      CGA area          (4)
  16.   BC000..BFFFF    752K     16K      Open
  17.   C0000..C7FFF    768K     32K      Open
  18.   C8000..CBFFF    800K     16K      Fixed disk        (5)
  19.   CC000..CFFFF    816K     16K      Peripheral i/o    (6)
  20.   D0000..DFFFF    832K     64K      Expanded memory   (7)
  21.   E0000..FFFFF    896K    128K      Read only memory  (8)
  22.  
  23. Output signal SMEM is active when the address is in the range
  24. 00000..9FFFF, EGA is active when the address is in the range A0000..AFFFF,
  25. and so forth.  The decoder is worked out in detailed Boolean form below.
  26. Contrast this with the two other forms in files MEMORY2.PLD and
  27. MEMORY3.PLD.
  28.  
  29. |"?" in: ADR[19..12], io:(SMEM, EGA, MDA, CGA, DISK, IO, EM, ROM)
  30. |
  31. |SMEM = ADR19' # (ADR19 & ADR18' & ADR17')
  32. |EGA  = ADR19  & ADR18' & ADR17  & ADR16'
  33. |MDA  = ADR19  & ADR18' & ADR17  & ADR16  & ADR15' & ADR14' & ADR13' & ADR12'
  34. |CGA  = ADR19  & ADR18' & ADR17  & ADR16  & ADR15  & ADR14'
  35. |DISK = ADR19  & ADR18  & ADR17' & ADR16' & ADR15  & ADR14'
  36. |IO   = ADR19  & ADR18  & ADR17' & ADR16' & ADR15  & ADR14 
  37. |EM   = ADR19  & ADR18  & ADR17' & ADR16
  38. |ROM  = ADR19  & ADR18  & ADR17
  39.  
  40.                                    
  41.