WriteFlashByte:				;Write the byte in accumulator to flash address in dptr
		push	acc
<b>--></b>		mov	RSTSRC,#00h	;Disable VDD monitor as a reset source      <b><-- Why, if you are going to enable it again in the very next line?</b>
		mov	RSTSRC,#02h     ;Enable VDD Monitor as a reset source
		mov	VDM0CN,#0A0h	;Enable VDD monitor and high threshold

WFBc:		mov	r7,#0		;Wait for VDD monitor to stabilize
		djnz	r7,$
   		mov	a,VDM0CN
   		jnb	acc.6,WFBc	;Wait for the VDD voltage to be high enough
<b>--></b>		mov	RSTSRC,#02h	;Enable VDD Monitor as a reset source       <b><-- Superfluous, this has been done already</b>
		mov	FLKEY,#0A5h	;Key sequence 1                             <b></b>
		mov	FLKEY,#0F1h	;Key sequence 2                             <b> > This is in the wrong order as compared to the datasheet procedure</b>
      		mov	PSCTL,#1                                                    <b>/</b>
<b>--></b>		mov	VDM0CN,#0A0h	;Enable VDD monitor and high threshold      <b><-- Superfluous, this has been done already</b>
<b>--></b>		mov	RSTSRC,#02h     ;Enable VDD Monitor as a reset source       <b><-- That's the third time!</b>
      		pop	acc
		movx	@dptr,a
		mov	PSCTL,#0
		inc	dptr
		ret