Skip to content
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

bell fix #35

Merged
merged 6 commits into from
Mar 27, 2019
Merged

bell fix #35

merged 6 commits into from
Mar 27, 2019

Conversation

xlar54
Copy link
Owner

@xlar54 xlar54 commented Mar 25, 2019

Seems that the terminal bell stop sounding. I implemented the bell in the assembly code, which seems to work fine now. Please test and confirm

@xlar54 xlar54 mentioned this pull request Mar 25, 2019
@xlar54
Copy link
Owner Author

xlar54 commented Mar 25, 2019

removed old term_bell function. Tests ok for me. Reply here if good for you and Ill merge

@@ -669,10 +669,28 @@ void uii_data_print(void) {
asm("cmp #$0a");
asm("beq %g", skipline);
#endif
// check for bell character and perform sound if so
asm("cmp #$07");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change lines 673..689 in:

    asm("cmp #$07");
    asm("bne %g", skipbell);
    asm("jsr %v", term_bell)
skipbell:
    asm("jsr $ffd2");

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also have conditional compiling, skipping term_bell on C128, since on C128 CHROUT of #7 char produces a bell sound

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...but maybe your code is quicker, since it's directly ASM. In that case, let's remove the former term_bell function.

src/ultimateterm.c Outdated Show resolved Hide resolved
@sblendorio
Copy link
Collaborator

sblendorio commented Mar 26, 2019 via email

@xlar54
Copy link
Owner Author

xlar54 commented Mar 26, 2019

makes sense - will do that

@xlar54 xlar54 merged commit cd8ba69 into master Mar 27, 2019
@xlar54 xlar54 deleted the minor-fixes branch March 27, 2019 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants