summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m68000/m68kcommon.cpp
blob: ef1b53db88789dd565501d796299ff6c943101e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert

#include "emu.h"

#include "m68kcommon.h"

void m68000_base_device::autovectors_map(address_map &map)
{
	// Eventually add the sync to E due to vpa
	// 8-bit handlers are used here to be compatible with all bus widths
	map(0x3, 0x3).lr8(NAME([] () -> u8 { return autovector(1); }));
	map(0x5, 0x5).lr8(NAME([] () -> u8 { return autovector(2); }));
	map(0x7, 0x7).lr8(NAME([] () -> u8 { return autovector(3); }));
	map(0x9, 0x9).lr8(NAME([] () -> u8 { return autovector(4); }));
	map(0xb, 0xb).lr8(NAME([] () -> u8 { return autovector(5); }));
	map(0xd, 0xd).lr8(NAME([] () -> u8 { return autovector(6); }));
	map(0xf, 0xf).lr8(NAME([] () -> u8 { return autovector(7); }));
}