home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / asm / drivers2 / printea.asm < prev    next >
Encoding:
Assembly Source File  |  1990-01-12  |  290 b   |  17 lines

  1.     public    print_ether_addr
  2. print_ether_addr:
  3.     mov    cx,EADDR_LEN
  4. print_ether_addr_0:
  5.     push    cx
  6.     lodsb
  7.     mov    cl,' '            ;Don't eliminate leading zeroes.
  8.     call    byteout
  9.     pop    cx
  10.     cmp    cx,1
  11.     je    print_ether_addr_1
  12.     mov    al,':'
  13.     call    chrout
  14. print_ether_addr_1:
  15.     loop    print_ether_addr_0
  16.     ret
  17.