We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0e28f2 commit 544b539Copy full SHA for 544b539
src/speaker.c
@@ -17,8 +17,16 @@ static u16 notes[7][12] = {
17
};
18
19
bool note_playing = false;
20
+u8 current_note = NOTE_NONE;
21
+u8 current_octave = 0;
22
23
void speaker_note(u8 octave, u8 note) {
24
+ if (octave == current_octave && note == current_note)
25
+ return;
26
+
27
+ current_octave = octave;
28
+ current_note = note;
29
30
if (note == NOTE_NONE)
31
{
32
speaker_pause();
src/stage0.S
@@ -38,7 +38,7 @@ _start:
38
How many sectors do we read, value in cx
39
*/
40
41
- movw $0x40, %cx
+ movw $0x23, %cx
42
movw $0x1000, segment
43
movw $0x0000, offset
44
movw $1, sector
0 commit comments