diff options
author | Mike Pavone <pavone@retrodev.com> | 2012-12-30 22:39:41 -0800 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2012-12-30 22:39:41 -0800 |
commit | 8dc3c22d3d0a2f34cd6321365761df66e32847f3 (patch) | |
tree | f2b454d2d2d7f87f7dea57629a8e9ba7bcb4d4b1 /runtime.S | |
parent | fc392c1296fe7a3703c1d51fa6e9d7dd0377bd23 (diff) |
Implemented HV counter
Diffstat (limited to 'runtime.S')
-rw-r--r-- | runtime.S | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -369,6 +369,8 @@ m68k_read_byte_scratch1: jbe cart_b cmp $0xE00000, %ecx jae workram_b + cmp $0xC00000, %ecx + jae vdp_psg_b cmp $0xA10000, %ecx jb not_io_b cmp $0xA12000, %ecx @@ -378,6 +380,17 @@ not_io_b: xor %cl, %cl dec %cl ret +vdp_psg_b: + test $0x2700E0, %ecx + jnz crash + and $0x1F, %ecx + bt $0, %ecx + jnc vdp_swap + jmp do_vdp_port_read +vdp_swap: + call do_vdp_port_read + shr $8, %cx + ret workram_b: /* deal with byte swapping */ xor $1, %ecx |