	.386p
	ifndef	??version
?debug	macro
	endm
publicdll macro	name
	public	name
	endm
	endif
	?debug	V 300h
	?debug	S "LED_DEMO.CPP"
	?debug	C E9519424370C4C45445F44454D4F2E435050
	?debug	C E9235C334719433A5C424333315C494E434C554445325C53594D42+
	?debug	C 4F4C2E48
	?debug	C E972A3413919433A5C424333315C494E434C554445325C4249544D+
	?debug	C 41502E48
	?debug	C E91A56CA3417433A5C424333315C494E434C554445325C49434F4E+
	?debug	C 2E48
	?debug	C E9D271443916433A5C424333315C494E434C554445325C4749462E+
	?debug	C 48
	?debug	C E996A48B4219433A5C424333315C494E434C554445325C4D454D4F+
	?debug	C 52592E48
	?debug	C E94019CA1818433A5C424333315C494E434C5544455C5354444C49+
	?debug	C 422E48
	?debug	C E94019CA1817433A5C424333315C494E434C5544455C5F44454653+
	?debug	C 2E48
	?debug	C E94019CA1815433A5C424333315C494E434C5544455C444F532E48
	?debug	C E94019CA1817433A5C424333315C494E434C5544455C535444494F+
	?debug	C 2E48
	?debug	C E94019CA1818433A5C424333315C494E434C5544455C5F4E46494C+
	?debug	C 452E48
	?debug	C E94019CA1817433A5C424333315C494E434C5544455C434F4E494F+
	?debug	C 2E48
	?debug	C E94019CA181B433A5C424333315C494E434C5544455C5359535C5C+
	?debug	C 535441542E48
	?debug	C E98881753917433A5C424333315C494E434C554445325C4A504547+
	?debug	C 2E48
	?debug	C E9E94C7C4F1A433A5C424333315C494E434C554445325C50524956+
	?debug	C 4154452E48
	?debug	C E9E258824F1A433A5C424333315C494E434C554445325C4D594652+
	?debug	C 414D452E48
	?debug	C E94019CA1818433A5C424333315C494E434C5544455C5354444C49+
	?debug	C 422E48
	?debug	C E94019CA1817433A5C424333315C494E434C5544455C535444494F+
	?debug	C 2E48
	?debug	C E94019CA1816433A5C424333315C494E434C5544455C42494F532E+
	?debug	C 48
	?debug	C E94019CA1814433A5C424333315C494E434C5544455C494F2E48
	?debug	C E94019CA1817433A5C424333315C494E434C5544455C434F4E494F+
	?debug	C 2E48
	?debug	C E94019CA181A433A5C424333315C494E434C5544455C4752415048+
	?debug	C 4943532E48
	?debug	C E94019CA1817433A5C424333315C494E434C5544455C414C4C4F43+
	?debug	C 2E48
	?debug	C E94019CA1815433A5C424333315C494E434C5544455C4449522E48
	?debug	C E94019CA1818433A5C424333315C494E434C5544455C535452494E+
	?debug	C 472E48
	?debug	C E94019CA1815433A5C424333315C494E434C5544455C444F532E48
	?debug	C E94019CA1816433A5C424333315C494E434C5544455C54494D452E+
	?debug	C 48
	?debug	C E94019CA1816433A5C424333315C494E434C5544455C4D4154482E+
	?debug	C 48
	?debug	C E94019CA1818433A5C424333315C494E434C5544455C4D414C4C4F+
	?debug	C 432E48
	?debug	C E94019CA1817433A5C424333315C494E434C5544455C414C4C4F43+
	?debug	C 2E48
	?debug	C E9235C334719433A5C424333315C494E434C554445325C53594D42+
	?debug	C 4F4C2E48
	?debug	C E97762234018433A5C424333315C494E434C554445325C4D4F5553+
	?debug	C 452E48
	?debug	C E996A48B4219433A5C424333315C494E434C554445325C4D454D4F+
	?debug	C 52592E48
	?debug	C E93851453A17433A5C424333315C494E434C554445325C464F4E54+
	?debug	C 2E48
	?debug	C E9654661411B433A5C424333315C494E434C554445325C48474C47+
	?debug	C 505249542E48
	?debug	C E996A48B4219433A5C424333315C494E434C554445325C4D454D4F+
	?debug	C 52592E48
	?debug	C E9BC5039391B433A5C424333315C494E434C554445325C52454749+
	?debug	C 535445522E48
	?debug	C E9235C334719433A5C424333315C494E434C554445325C53594D42+
	?debug	C 4F4C2E48
	?debug	C E9D353E23A1A433A5C424333315C494E434C554445325C4C495354+
	?debug	C 494E472E48
	?debug	C E9D353E23A1A433A5C424333315C494E434C554445325C4C495354+
	?debug	C 494E472E48
	?debug	C E9D4A5D9401B433A5C424333315C494E434C554445325C53564741+
	?debug	C 5F4445562E48
	?debug	C E98950FD3E17433A5C424333315C494E434C554445325C56424533+
	?debug	C 2E48
	?debug	C E9235C334719433A5C424333315C494E434C554445325C53594D42+
	?debug	C 4F4C2E48
	?debug	C E9DA89FB4619433A5C424333315C494E434C554445325C4B45524E+
	?debug	C 454C2E48
	?debug	C E94019CA1816433A5C424333315C494E434C5544455C54494D452E+
	?debug	C 48
	?debug	C E9C76B384F18433A5C424333315C494E434C554445325C47524150+
	?debug	C 482E48
	?debug	C E9F8B829451A433A5C424333315C494E434C554445325C534F434B+
	?debug	C 4554332E48
	?debug	C E9235C334719433A5C424333315C494E434C554445325C53594D42+
	?debug	C 4F4C2E48
	?debug	C E996A48B4219433A5C424333315C494E434C554445325C4D454D4F+
	?debug	C 52592E48
	?debug	C E9A454E23A1A433A5C424333315C494E434C554445325C534F434B+
	?debug	C 4554352E48
	?debug	C E92DAB29451A433A5C424333315C494E434C554445325C534F434B+
	?debug	C 4554342E48
	?debug	C E9F8B829451A433A5C424333315C494E434C554445325C534F434B+
	?debug	C 4554332E48
	?debug	C E92258714F1A433A5C424333315C494E434C554445325C4E45574D+
	?debug	C 4154482E48
	?debug	C E9A8548B4319433A5C424333315C494E434C554445325C53504C49+
	?debug	C 4E452E48
	?debug	C E91D51E23A19433A5C424333315C494E434C554445325C57495A41+
	?debug	C 52442E48
	?debug	C E9D7726133074D455445522E48
LED_DEMO_TEXT	segment byte public use16 'CODE'
LED_DEMO_TEXT	ends
DGROUP	group	_DATA,_BSS
	assume	cs:LED_DEMO_TEXT,ds:DGROUP
_DATA	segment word public use16 'DATA'
d@	label	byte
d@w	label	word
_DATA	ends
_BSS	segment word public use16 'BSS'
b@	label	byte
b@w	label	word
_BSS	ends
_DATA	segment word public use16 'DATA'
	db	0
	db	0
_DATA	ends
LED_DEMO_TEXT	segment byte public use16 'CODE'
	assume	cs:LED_DEMO_TEXT
@OnTime_LedDemoDialog$qn7CObject	proc	far
	enter	16,0
	push	si
	push	di
	mov	eax,dword ptr [bp+6]
	mov	dword ptr [bp-4],eax
	inc	word ptr DGROUP:d@w+0
	mov	ax,word ptr DGROUP:d@w+0
	mov	bx,10
	cwd	
	idiv	bx
	or	dx,dx
	je short	@@47
	jmp	@1@86
@@47:
	mov	word ptr DGROUP:d@w+0,0
	push	ss
	lea	ax,word ptr [bp-14]
	push	ax
	push	dword ptr [bp-4]
	call	far ptr @CWindow@SaveAndSetUserView$qn12viewporttype
	add	sp,8
	call	far ptr _rand
	mov	word ptr [bp-16],ax
	mov	bx,10000
	cwd	
	idiv	bx
	mov	si,dx
	mov	ax,si
	mov	bx,1000
	cwd	
	idiv	bx
	mov	di,ax
	push	ax
	push	large 0000C0023h
	push	large 00023001Eh
	push	10
	call	far ptr @DrawMeter$qiiiiii
	add	sp,12
	mov	ax,di
	imul	ax,ax,1000
	sub	si,ax
	mov	ax,si
	mov	bx,100
	cwd	
	idiv	bx
	mov	di,ax
	push	ax
	push	large 0000C0023h
	push	large 00023001Eh
	push	60
	call	far ptr @DrawMeter$qiiiiii
	add	sp,12
	mov	ax,di
	imul	ax,ax,100
	sub	si,ax
	mov	ax,si
	mov	bx,10
	cwd	
	idiv	bx
	mov	di,ax
	push	ax
	push	large 0000C0023h
	push	large 00023001Eh
	push	110
	call	far ptr @DrawMeter$qiiiiii
	add	sp,12
	mov	ax,di
	imul	ax,ax,10
	mov	dx,si
	sub	dx,ax
	push	dx
	push	large 0000C0023h
	push	large 00023001Eh
	push	160
	call	far ptr @DrawMeter$qiiiiii
	add	sp,12
	push	ss
	lea	ax,word ptr [bp-14]
	push	ax
	push	dword ptr [bp-4]
	call	far ptr @CWindow@RestoreUserView$qn12viewporttype
	add	sp,8
@1@86:
	pop	di
	pop	si
	leave	
	ret	
@OnTime_LedDemoDialog$qn7CObject	endp
	assume	cs:LED_DEMO_TEXT
@OnDraw_LedDemoDialog$qn7CObject	proc	far
	push	bp
	mov	bp,sp
	push	large 00001000Ch
	push	large 000230023h
	push	large 0001E000Ah
	call	far ptr @DrawMeter$qiiiiii
	add	sp,12
	push	large 00002000Ch
	push	large 000230023h
	push	large 0001E003Ch
	call	far ptr @DrawMeter$qiiiiii
	add	sp,12
	push	large 00003000Ch
	push	large 000230023h
	push	large 0001E006Eh
	call	far ptr @DrawMeter$qiiiiii
	add	sp,12
	push	large 00004000Ch
	push	large 000230023h
	push	large 0001E00A0h
	call	far ptr @DrawMeter$qiiiiii
	add	sp,12
	pop	bp
	ret	
@OnDraw_LedDemoDialog$qn7CObject	endp
	assume	cs:LED_DEMO_TEXT
@LedDemoDialog$qv	proc	far
	enter	4,0
	push	large 0
	call	far ptr @CDialog@$bctr$qv
	add	sp,4
	mov	word ptr [bp-2],dx
	mov	word ptr [bp-4],ax
	push	ds
	push	offset DGROUP:s@+1
	push	large 000A000E6h
	push	large 0
	push	dx
	push	ax
	call	far ptr @CWindow@CreateWindow$qiiiinxzc
	add	sp,16
	push	dword ptr [bp-4]
	call	far ptr @CWindow@Center$qv
	add	sp,4
	push	dword ptr [bp-4]
	push	large 0
	call	far ptr @CCloseButton@$bctr$qn7CObject
	add	sp,8
	push	10
	push	dword ptr [bp-4]
	call	far ptr @@CObject@SetBackColor$qi
	add	sp,6
	push	seg @OnDraw_LedDemoDialog$qn7CObject
	push	offset @OnDraw_LedDemoDialog$qn7CObject
	push	dword ptr [bp-4]
	call	far ptr @@CWindow@SetDrawFc$qnqn7CObject$v
	add	sp,8
	push	seg @OnTime_LedDemoDialog$qn7CObject
	push	offset @OnTime_LedDemoDialog$qn7CObject
	push	dword ptr [bp-4]
	call	far ptr @@CWindow@SetTimeFc$qnqn7CObject$v
	add	sp,8
	push	large 1
	push	dword ptr [bp-4]
	call	far ptr @CWindow@ShowWindow$qul
	add	sp,8
	push	dword ptr [bp-4]
	call	far ptr @CDialog@DoModal$qv
	add	sp,4
	cmp	dword ptr [bp-4],large 0
	je	short @3@86
	push	3
	push	dword ptr [bp-4]
	les	bx,dword ptr [bp-4]
	mov	bx,word ptr es:[bx]
	call	dword ptr [bx+44]
	add	sp,6
	jmp	short @3@86
@3@86:
	leave	
	ret	
@LedDemoDialog$qv	endp
LED_DEMO_TEXT	ends
LED_DEMO_TEXT	segment byte public use16 'CODE'
@CObject@SetBackColor$qi	segment	virtual
	assume	cs:@CObject@SetBackColor$qi
@@CObject@SetBackColor$qi	proc	far
	push	bp
	mov	bp,sp
	les	bx,dword ptr [bp+6]
	mov	ax,word ptr [bp+10]
	mov	word ptr es:[bx+22],ax
	pop	bp
	ret	
@@CObject@SetBackColor$qi	endp
@CObject@SetBackColor$qi	ends
LED_DEMO_TEXT	ends
LED_DEMO_TEXT	segment byte public use16 'CODE'
@CWindow@SetDrawFc$qnqn7CObject$v	segment	virtual
	assume	cs:@CWindow@SetDrawFc$qnqn7CObject$v
@@CWindow@SetDrawFc$qnqn7CObject$v	proc	far
	push	bp
	mov	bp,sp
	les	bx,dword ptr [bp+6]
	mov	eax,dword ptr [bp+10]
	mov	dword ptr es:[bx+276],eax
	pop	bp
	ret	
@@CWindow@SetDrawFc$qnqn7CObject$v	endp
@CWindow@SetDrawFc$qnqn7CObject$v	ends
LED_DEMO_TEXT	ends
LED_DEMO_TEXT	segment byte public use16 'CODE'
@CWindow@SetTimeFc$qnqn7CObject$v	segment	virtual
	assume	cs:@CWindow@SetTimeFc$qnqn7CObject$v
@@CWindow@SetTimeFc$qnqn7CObject$v	proc	far
	push	bp
	mov	bp,sp
	les	bx,dword ptr [bp+6]
	mov	eax,dword ptr [bp+10]
	mov	dword ptr es:[bx+288],eax
	pop	bp
	ret	
@@CWindow@SetTimeFc$qnqn7CObject$v	endp
	?debug	C E9
	?debug	C FA10000000
@CWindow@SetTimeFc$qnqn7CObject$v	ends
LED_DEMO_TEXT	ends
_DATA	segment word public use16 'DATA'
s@	label	byte
	db	0
	db	'LED'
	db	0
_DATA	ends
LED_DEMO_TEXT	segment byte public use16 'CODE'
LED_DEMO_TEXT	ends
	public	@LedDemoDialog$qv
	public	@OnDraw_LedDemoDialog$qn7CObject
	public	@OnTime_LedDemoDialog$qn7CObject
	extrn	@DrawMeter$qiiiiii:far
	extrn	@CCloseButton@$bctr$qn7CObject:far
	extrn	@CDialog@$bctr$qv:far
	extrn	@CDialog@DoModal$qv:far
	extrn	@CWindow@ShowWindow$qul:far
	extrn	@CWindow@Center$qv:far
	extrn	@CWindow@CreateWindow$qiiiinxzc:far
	extrn	@CWindow@RestoreUserView$qn12viewporttype:far
	extrn	@CWindow@SaveAndSetUserView$qn12viewporttype:far
_pokeb	equ	pokeb
_poke	equ	poke
_peekb	equ	peekb
_peek	equ	peek
	extrn	_rand:far
_atoi	equ	atoi
_abs	equ	abs
_s@	equ	s@
	end
