home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / MBUG / MBUG013.ARC / BIG.PRO < prev    next >
Text File  |  1979-12-31  |  2KB  |  44 lines

  1. procedure Big;
  2.  
  3. { This procedure shifts the big (64 X 16)
  4.   character set into the PCG memory,
  5.   only shifted up a little to fit properly.
  6.   Descenders are truncated.
  7.  
  8.   Writeen by Neil Brown/Gordon Rowell.
  9. }
  10.  
  11. begin { Big }
  12.                           { SCNTOP        EQU   0F000H  }
  13.                           { PCGRAM        EQU   0F800H  }
  14.                           { PCGSIZE       EQU   800H    }
  15.                           { ROMPORT       EQU   0BH     }
  16.                           { CRTSLCT       EQU   0CH     }
  17.                           { CRTDATA       EQU   0DH     }
  18.  
  19.  
  20. inline($3E/ $0C/          { BIG:   LD      A,12         }
  21.        $D3/ $0C/          {        OUT     (CRTSLCT),A  }
  22.        $AF/               {        XOR     A            }
  23.        $D3/ $0D/          {        OUT     (CRTDATA),A  }
  24.        $3C/               {        INC     A            }
  25.        $D3/ $0B/          {        OUT     (ROMPORT),A  }
  26.        $21/ $1388/        {        LD      HL,5000      }
  27.        $2B/               { BIG_1: DEC     HL           }
  28.        $7C/               {        LD      A,H          }
  29.        $B5/               {        OR      L            }
  30.        $20/ $FB/          {        JR      NZ,BIG_1     }
  31.        $21/ $F004/        {        LD      HL,SCNTOP+4  }
  32.        $11/ $F800/        {        LD      DE,PCGRAM    }
  33.        $01/ $0800/        {        LD      BC,PCGSIZE   }
  34.        $ED/ $B0/          {        LDIR                 }
  35.        $AF/               {        XOR     A            }
  36.        $D3/ $0B/          {        OUT     (ROMPORT),A  }
  37.        $3E/ $0C/          {        LD      A,12         }
  38.        $D3/ $0C/          {        OUT     (CRTSLCT),A  }
  39.        $3E/ $20/          {        LD      A,20H        }
  40.        $D3/ $0D           {        OUT     (CRTDATA),A  }
  41.       )
  42.  
  43. end; { Big }
  44.