public static void main(String[] args){
		short tal = (short)(-10);
		System.out.println(tal & 0xffff);
		Cpu cpu = new Cpu(null);
		int[] arr = new int[]{
			0x7c01,	0x0030,
			0x7de1, 0x1000, 0x0020,
			0x7803, 0x1000,
			0xc00d,
			0x7dc1, 0x001a,
			
			0xa861,
			0x7c01, 0x2000,
			0x2161, 0x2000,
			0x8463,
			0x806d,
			0x7dc1, 0x000d,
			
			0x9031,
			0x7c10, 0x0018,
			0x7dc1, 0x001a,
			0x9037,
			0x61c1,
			
			0x7dc1, 0x001a
		};
		for(int i=0; i<arr.length; i++) cpu.memory[i] = (short)arr[i];
		cpu.start();
		for(int i=0; i<cpu.memory.length; i++){
			if (i % 32 == 0) System.out.print(i + ": ");
			System.out.print(cpu.memory[i] + " ");
			if (i % 32 == 31) System.out.println();
		}
	}