This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/mk_fp.c

12 lines
239 B
C

#include <i86.h>
#include <stdio.h>
void main()
{
unsigned short __far *bios_prtr_port_1;
bios_prtr_port_1 =
(unsigned short __far *) MK_FP( 0x40, 0x8 );
printf( "Port address is %x\n", *bios_prtr_port_1 );
}