Fixed assert in z80 cpu core when using nsc800 (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2010-05-25 06:57:29 +00:00
parent 73a1e11178
commit d198a773e6

View File

@ -169,7 +169,7 @@ INLINE z80_state *get_safe_token(running_device *device)
assert(device != NULL);
assert(device->token != NULL);
assert(device->type == CPU);
assert(cpu_get_type(device) == CPU_Z80);
assert(cpu_get_type(device) == CPU_Z80 || cpu_get_type(device) == CPU_NSC800);
return (z80_state *)device->token;
}