-
Notifications
You must be signed in to change notification settings - Fork 2.3k
endstate: zxbus + vtrd #13372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
endstate: zxbus + vtrd #13372
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
4e31837
sinclair/tsconf.cpp: Added TR-DOS with virutal drives
holub 664f031
tidy
holub 3cf2ac8
Merge branch 'master' of https://github.com/mamedev/mame into tsconf
holub d30eccf
update save
holub 325644f
fix bank0 write condition
holub 0f23106
io view
holub 68d1d9f
bus/spectrum/zxbus.cpp: Refactored shadow IO handeling
holub efaf248
bus/spectrum/zxbus.cpp more rafactoring
holub 28a719e
:(
holub 47d0ec3
Merge branch 'tsconf' into bus-vtrd
holub 5bd6146
Merge branch 'zxbus-refactoring' into bus-vtrd
holub 8321d0e
end state for #13253 + #13202
holub 51ccb48
Merge branch 'master' of https://github.com/mamedev/mame into bus-vtrd
holub 5d23002
Merge remote-tracking branch 'mame/master' into bus-vtrd
holub 1ae9558
Merge remote-tracking branch 'mame/master' into bus-vtrd
holub b9938cd
fix duplicate after merge
holub 2e6e76f
fix select shadow on reset
holub f7d4382
Merge branch 'master' of https://github.com/mamedev/mame into bus-vtrd
holub 3a9a6a5
Merge branch 'master' into bus-vtrd
holub cf9b0e3
Merge branch 'master' of https://github.com/mamedev/mame into bus-vtrd
holub dbd40bf
Merge branch 'master' of https://github.com/mamedev/mame into bus-vtrd
holub 84a8fcc
Merge remote-tracking branch 'mame/master' into bus-vtrd
holub 4ee5791
refactored to remap()
holub 8bd9dc4
Merge remote-tracking branch 'mame/master' into bus-vtrd
holub 5a6c8f5
Merge branch 'master' into bus-vtrd
holub File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| // license:BSD-3-Clause | ||
| // copyright-holders:Andrei I. Holub | ||
| #include "emu.h" | ||
| #include "zxbus_adapter.h" | ||
|
|
||
| DEFINE_DEVICE_TYPE(ISA8_ZXBUS, zxbus_adapter_device, "zxbus_adapter", "ISA8 to ZXBUS Adapter") | ||
|
|
||
| zxbus_adapter_device::zxbus_adapter_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) | ||
| : device_t(mconfig, ISA8_ZXBUS, tag, owner, clock) | ||
| , device_isa8_card_interface(mconfig, *this) | ||
| , m_isa_io_view(*this, "isa_io_view") | ||
| , m_zxbus(*this, "zxbus") | ||
| { | ||
| } | ||
|
|
||
| void zxbus_adapter_device::remap(int space_id, offs_t start, offs_t end) | ||
| { | ||
| if (space_id == AS_IO) | ||
| { | ||
| m_isa->space(isa8_device::AS_ISA_IO).install_view(0x0000, 0xffff, m_isa_io_view); | ||
| } | ||
| } | ||
|
|
||
| void zxbus_adapter_device::device_start() | ||
| { | ||
| set_isa_device(); | ||
| remap(AS_IO, 0, 0xffff); | ||
|
|
||
| m_zxbus->set_io_space(m_isa_io_view[0], m_isa_io_view[0]); | ||
| m_isa_io_view.select(0); | ||
| } | ||
|
|
||
| void zxbus_adapter_device::device_add_mconfig(machine_config &config) | ||
| { | ||
| ZXBUS(config, m_zxbus, 0); | ||
| ZXBUS_SLOT(config, "card", 0, m_zxbus, zxbus_cards, nullptr); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // license:BSD-3-Clause | ||
| // copyright-holders:Andrei I. Holub | ||
| #ifndef MAME_BUS_ISA_ZXBUS_ADAPTER_H | ||
| #define MAME_BUS_ISA_ZXBUS_ADAPTER_H | ||
|
|
||
| #include "isa.h" | ||
|
|
||
| #include "bus/spectrum/zxbus/bus.h" | ||
|
|
||
| class zxbus_adapter_device: public device_t, public device_isa8_card_interface | ||
| { | ||
| public: | ||
| zxbus_adapter_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); | ||
|
|
||
| protected: | ||
| virtual void device_start() override ATTR_COLD; | ||
| virtual void device_add_mconfig(machine_config &config) override ATTR_COLD; | ||
| virtual void remap(int space_id, offs_t start, offs_t end) override ATTR_COLD; | ||
|
|
||
| private: | ||
| memory_view m_isa_io_view; | ||
| required_device<zxbus_device> m_zxbus; | ||
|
|
||
| }; | ||
|
|
||
| DECLARE_DEVICE_TYPE(ISA8_ZXBUS, zxbus_adapter_device) | ||
|
|
||
| #endif // MAME_BUS_ISA_ZXBUS_ADAPTER_H |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of sheer curiosity: is there a x86 realm software option for this bridge adapter or it's confined to Spectrum family?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It just for zx family - actually only for Sprinter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can plug it to x86 but I doubt anybody did that :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.