 				total += code
 
 		func = eval('(function(state) { state.delayed = false;\n' + total + ' })')
+		@last_block_func = func
 		[true, pc, func]
 
 	branch: (pc, recompiled=false) ->

		@pc += 4 if @delayed == null

	decompile_block: (pc) ->
		@decompiling = true
		total = ''
		emit = (snippet) -> code += snippet + '\n'
		branched = false

			0, 0, 0, 0, 0, 0, 0, 0
		]

		@last_block_pc = -1
		@last_block_func = null

	execute_one: ->
		@inscount++
		@delayed = @delay
		cpc = if @delayed != null then @delay else @pc
