diff src/console/Hes_Emu.cxx @ 323:230decbfe9be trunk

[svn] - what would we have ever done without Aerdan?
author nenolod
date Thu, 30 Nov 2006 23:02:05 -0800
parents fb513e10174e
children 986f098da058
line wrap: on
line diff
--- a/src/console/Hes_Emu.cxx	Thu Nov 30 22:57:16 2006 -0800
+++ b/src/console/Hes_Emu.cxx	Thu Nov 30 23:02:05 2006 -0800
@@ -237,7 +237,7 @@
 	vdp.next_vbl  = 0;
 	
 	ram [0x1FF] = (idle_addr - 1) >> 8;
-	ram [0x1FE] = (idle_addr - 1);
+	ram [0x1FE] = (idle_addr - 1) & 0xFF;
 	r.sp = 0xFD;
 	r.pc = get_le16( header_.init_addr );
 	r.a  = track;