Subject: Disassembly of printer I/O routines

From: "jhogerhuis" <jhoger@...>
Date: Thu, 15 Apr 2004 20:56:47 -0000

Printer I/O routines 
 
-- read from parallel port 
1a08  3e00      ld      a,#00 
1a0a  d32c      out     (#2c),a 
1a0c  db2d      in      a,(#2d) 
1a0e  6f        ld      l,a 
1a0f  2600      ld      h,#00 
1a11  b4        or      h 
1a12  c9        ret      
 
-- write to parallel port 
1a13  210200    ld      hl,#0002 
1a16  39        add     hl,sp 
1a17  3eff      ld      a,#ff 
1a19  d32c      out     (#2c),a 
1a1b  7e        ld      a,(hl) 
1a1c  d32d      out     (#2d),a 
1a1e  c9        ret      
 
-- check parallel port status 
1a1f  db21      in      a,(#21) 
1a21  e6f8      and     #f8 
1a23  6f        ld      l,a 
1a24  2600      ld      h,#00 
1a26  b4        or      h 
1a27  c9        ret    
 
Just have to figure out what code calls 1a08 
 
It's not in the first bank. 
 
dz80, find and grep should prove helpful... 
 
-- John.