Skip to content

Commit 9c74e6d

Browse files
committed
Merge branch 'dev'
Conflicts: .github/workflows/cmake-mingw.yml .github/workflows/cmake-ubuntu.yml .github/workflows/cmake.yml
2 parents f65c8b4 + 5857285 commit 9c74e6d

File tree

163 files changed

+3428
-3790
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+3428
-3790
lines changed

.github/workflows/cmake-mingw.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,3 @@ jobs:
4949
# - name: Test
5050
# working-directory: ${{github.workspace}}/build
5151
# run: ctest --verbose -C ${{env.BUILD_TYPE}}
52-
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CMake-Ubuntu
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '40 5 * * *'
8+
9+
env:
10+
BUILD_TYPE: Release
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Configure CMake
20+
working-directory: ./Emulator
21+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
22+
23+
- name: Build
24+
working-directory: ./Emulator
25+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
26+
27+
- name: Test
28+
working-directory: ${{github.workspace}}/build
29+
run: ctest --verbose -C ${{env.BUILD_TYPE}}
30+

Emulator/Agnus/Agnus.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace vamiga {
1515

1616
Agnus::Agnus(Amiga& ref) : SubComponent(ref)
1717
{
18-
subComponents = std::vector<AmigaComponent *> {
18+
subComponents = std::vector<CoreComponent *> {
1919

2020
&sequencer,
2121
&copper,
@@ -151,9 +151,6 @@ Agnus::setVideoFormat(VideoFormat newFormat)
151151
// Clear frame buffers
152152
denise.pixelEngine.clearAll();
153153

154-
// Let the audio engine know about the speed change
155-
paula.muxer.adjustSpeed();
156-
157154
// Inform the GUI
158155
msgQueue.put(MSG_VIDEO_FORMAT, newFormat);
159156
}

Emulator/Agnus/Agnus.h

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class Agnus : public SubComponent {
208208

209209

210210
//
211-
// Methods from AmigaObject
211+
// Methods from CoreObject
212212
//
213213

214214
private:
@@ -218,7 +218,7 @@ class Agnus : public SubComponent {
218218

219219

220220
//
221-
// Methods from AmigaComponent
221+
// Methods from CoreComponent
222222
//
223223

224224
private:
@@ -341,8 +341,8 @@ class Agnus : public SubComponent {
341341

342342
public:
343343

344-
AgnusInfo getInfo() const { return AmigaComponent::getInfo(info); }
345-
EventInfo getEventInfo() const { return AmigaComponent::getInfo(eventInfo); }
344+
AgnusInfo getInfo() const { return CoreComponent::getInfo(info); }
345+
EventInfo getEventInfo() const { return CoreComponent::getInfo(eventInfo); }
346346
EventSlotInfo getSlotInfo(isize nr) const;
347347
const AgnusStats &getStats() { return stats; }
348348

@@ -673,14 +673,6 @@ class Agnus : public SubComponent {
673673
scheduleAbs<s>(clock + cycle, id, data);
674674
}
675675

676-
/*
677-
template<EventSlot s> void schedulePos(Beam target, EventID id, i64 data) {
678-
679-
assert(target.v > pos.v || (target.v == pos.v && target.h >= pos.h));
680-
scheduleRel<s>(DMA_CYCLES(pos.diff(target.v, target.h)), id, data);
681-
}
682-
*/
683-
684676
template<EventSlot s> void schedulePos(isize vpos, isize hpos, EventID id) {
685677

686678
assert(vpos > pos.v || (vpos == pos.v && hpos >= pos.h));
@@ -697,12 +689,6 @@ class Agnus : public SubComponent {
697689
rescheduleAbs<s>(clock + cycle);
698690
}
699691

700-
/*
701-
template<EventSlot s> void reschedulePos(Beam pos) {
702-
rescheduleAbs<s>(beamToCycle(pos));
703-
}
704-
*/
705-
706692
template<EventSlot s> void reschedulePos(i16 vpos, i16 hpos) {
707693

708694
assert(vpos > pos.v || (vpos == pos.v && hpos >= pos.h));

Emulator/Agnus/AgnusInfo.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,13 +646,15 @@ Agnus::_dump(Category category, std::ostream& os) const
646646
}
647647

648648
if (category == Category::Events) {
649+
650+
inspect();
649651

650652
os << std::left << std::setw(10) << "Slot";
651653
os << std::left << std::setw(14) << "Event";
652654
os << std::left << std::setw(18) << "Trigger position";
653655
os << std::left << std::setw(16) << "Trigger cycle" << std::endl;
654656

655-
for (isize i = 0; i < 23; i++) {
657+
for (isize i = 0; i < SLOT_COUNT; i++) {
656658

657659
EventSlotInfo &info = slotInfo[i];
658660

@@ -762,7 +764,7 @@ Agnus::inspectSlot(EventSlot nr) const
762764
info.hpos = beam.h;
763765
info.frameRel = long(beam.frame - pos.frame);
764766

765-
info.eventName = agnus.eventName((EventSlot)nr, id[nr]);
767+
info.eventName = eventName((EventSlot)nr, id[nr]);
766768
}
767769

768770
EventSlotInfo

Emulator/Agnus/AgnusTypes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,14 @@ enum_i8(EventID)
384384
INS_EVENT_COUNT
385385
};
386386

387+
/*
387388
static inline bool isRegEvent(EventID id) { return id < REG_EVENT_COUNT; }
388389
static inline bool isCiaEvent(EventID id) { return id < CIA_EVENT_COUNT; }
389390
static inline bool isBplEvent(EventID id) { return id < BPL_EVENT_COUNT; }
390391
static inline bool isDasEvent(EventID id) { return id < DAS_EVENT_COUNT; }
391392
static inline bool isCopEvent(EventID id) { return id < COP_EVENT_COUNT; }
392393
static inline bool isBltEvent(EventID id) { return id < BLT_EVENT_COUNT; }
394+
*/
393395

394396
static inline bool isBplxEvent(EventID id, int x)
395397
{

Emulator/Agnus/Blitter/Blitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Blitter::Blitter(Amiga& ref) : SubComponent(ref)
4444
void
4545
Blitter::_initialize()
4646
{
47-
AmigaComponent::_initialize();
47+
CoreComponent::_initialize();
4848

4949
initFastBlitter();
5050
initSlowBlitter();

Emulator/Agnus/Blitter/Blitter.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class Blitter : public SubComponent
191191

192192

193193
//
194-
// Methods from AmigaObject
194+
// Methods from CoreObject
195195
//
196196

197197
private:
@@ -201,7 +201,7 @@ class Blitter : public SubComponent
201201

202202

203203
//
204-
// Methods from AmigaComponent
204+
// Methods from CoreComponent
205205
//
206206

207207
private:
@@ -301,7 +301,7 @@ class Blitter : public SubComponent
301301

302302
public:
303303

304-
BlitterInfo getInfo() const { return AmigaComponent::getInfo(info); }
304+
BlitterInfo getInfo() const { return CoreComponent::getInfo(info); }
305305

306306

307307
//

Emulator/Agnus/Copper/Copper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace vamiga {
1919

2020
Copper::Copper(Amiga& ref) : SubComponent(ref)
2121
{
22-
subComponents = std::vector<AmigaComponent *> {
22+
subComponents = std::vector<CoreComponent *> {
2323

2424
&debugger
2525
};

0 commit comments

Comments
 (0)