Demo entry 6624150

23123

   

Submitted by anonymous on Jun 13, 2017 at 15:24
Language: C. Code size: 321 Bytes.

#include<reg51.h>
#include<absacc.h>
#define uchar unsigned char
#define add XBYTE[0xOOOO]
#define my8255_a &add+0x7cff
#define my8255_b &add+0x7dff
#define my8255_mode &add+0x7fff
main()
{
	uchar PORT_DATA;

		*(my8255_mode)=0x82;
		while(1)
		{
			PORT_DATA=*(my8255_b);
			*(my8255_a)=PORT_DATA;
		}
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).