reset() {
		// Get address to set program counter to
		this.addr_abs = 0xFFFC;
		let lo = this.read(this.addr_abs + 0);
		let hi = this.read(this.addr_abs + 1);

		// Set it
		this.pc = (hi << 8) | lo;

		// Reset internal registers
		this.a = 0;
		this.x = 0;
		this.y = 0;
		this.stkp = 0xFD;
		this.status = 0x00 | FLAGS6502.U;

		// Clear internal helper variables
		this.addr_rel = 0x0000;
		this.addr_abs = 0x0000;
		this.fetched = 0x00;

		// Reset takes time
		this.cycles = 8;
	}
// at location 0xFFFC at compile time.
at location 0xFFFC at compile time.
at location 0xFFFC at compile time .
reset() {
		this.addr_abs = 0xFFFC;
		let lo = this.read(this.addr_abs + 0);
		let hi = this.read(this.addr_abs + 1);
		this.pc = (hi << 8) | lo;
		this.a = 0;
		this.x = 0;
		this.y = 0;
		this.stkp = 0xFD;
		this.status = 0x00 | FLAGS6502.U;
		this.addr_rel = 0x0000;
		this.addr_abs = 0x0000;
		this.fetched = 0x00;
		this.cycles = 8;
	}
reset ( ) { this . addr_abs = 0xFFFC ; let lo = this . read ( this . addr_abs + 0 ) ; let hi = this . read ( this . addr_abs + 1 ) ; this . pc = ( hi << 8 ) | lo ; this . a = 0 ; this . x = 0 ; this . y = 0 ; this . stkp = 0xFD ; this . status = 0x00 | FLAGS6502 . U ; this . addr_rel = 0x0000 ; this . addr_abs = 0x0000 ; this . fetched = 0x00 ; this . cycles = 8 ; }
at location 0xFFFC at compile time.
at location 0xFFFC at compile time .
// Get address to set program counter to // Set it // Reset internal registers // Clear internal helper variables // Reset takes time