package playingcoffee.core;

public class Registers {

	private int af;
	private int bc;
	private int de;
	private int hl;
	
	public int pc;
	public int sp;
	
	public int readAF() {
		return af;
	}
	
	public int readBC() {
		return bc;
	}
	
	public int readDE() {
		return de;
	}
	
	public int readHL() {
		return hl;
	}
	
	public int readA() {
		return af & 0xff;
	}
	
	public void writeA(int a) {
		this.af = a & 0xff;
	}
	
	public int readF() {
		return f;
	}
	
	public void writeF(int f) {
		this.f = f;
	}
	
	public int readB() {
		return b;
	}
	
	public void writeB(int b) {
		this.b = b;
	}
	
	public int readC() {
		return c;
	}
	
	public void writeC(int c) {
		this.c = c;
	}
	
	public int readD() {
		return d;
	}
	
	public void writeD(int d) {
		this.d = d;
	}
	
	public int readE() {
		return e;
	}
	
	public void writeE(int e) {
		this.e = e;
	}
	
	public int readH() {
		return h;
	}
	
	public void writeH(int h) {
		this.h = h;
	}
	
	public int readL() {
		return l;
	}
	
	public void writeL(int l) {
		this.l = l;
	}
	
}
