Skip to content

Commit

Permalink
Slightly simplify template arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHarte committed Jan 30, 2025
1 parent 8ba57de commit 0ff6a0b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Machines/Commodore/Plus4/Plus4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -865,20 +865,19 @@ class ConcreteMachine:

// stx timr2l
// sty timr2h
timers_.write<0xff02>(x);
timers_.write<0xff03>(y);
timers_.write<2>(x);
timers_.write<3>(y);

//; go! ...ta
//
// pla ;go! ...ta
// sta timr3l
// pla
// sta timr3h ;go! ...tb
timers_.tick(4);
pla();
timers_.write<0xff04>(a);
timers_.write<4>(a);
pla();
timers_.write<0xff05>(a);
timers_.write<5>(a);


//; clear timer flags
Expand Down Expand Up @@ -1000,9 +999,9 @@ class ConcreteMachine:
// lda zcell+1
// sta timr2h
ldabs(a, zcell);
timers_.write<0xff02>(a);
timers_.write<2>(a);
ldabs(a, zcell + 1);
timers_.write<0xff03>(y);
timers_.write<3>(y);


// ; go! z-cell check
Expand Down

0 comments on commit 0ff6a0b

Please sign in to comment.