 	soundTimer = 0
 	delayTimer = 0
 
-	programCounter = 0x200
+	programCounter = START_PROGRAM
 	I = 0
 	stackPointer = 0
 
 	waitingForKey = false
-
-
-	load = (romData) ->
-		for i in [0...romData.length]
-			memory[i + 0x0200] = romData[i]
-
-		# calling it here for now
-		initChars()
-		return
-
-
-	reset = ->
-		soundTimer = 0
-		delayTimer = 0
-
-		programCounter = 0x200
-		I = 0
-		stackPointer = 0
-
-		video[i] = 0 for i in [0...WIDTH * HEIGHT]
-		V[i] = 0 for i in [0...16]
-		stack[i] = 0 for i in [0...16]
-		return
 
 
 	initChars = ->

		return


	getVideo = -> video
	getRegisters = -> V
	getProgramCounter = -> programCounter

Chip8 = ->
	WIDTH = 64
	HEIGHT = 32
	START_PROGRAM = 0x0200

	video = new Uint8Array WIDTH * HEIGHT
	memory = new Uint8Array 0x1000
