Skip to content

[paint] Further optimization of ASM graphics routines#2290

Merged
ghaerr merged 2 commits intomasterfrom
paint9
Apr 9, 2025
Merged

[paint] Further optimization of ASM graphics routines#2290
ghaerr merged 2 commits intomasterfrom
paint9

Conversation

@ghaerr
Copy link
Copy Markdown
Owner

@ghaerr ghaerr commented Apr 9, 2025

In particular, replace mov cl,#3; shr ax,cl with multiple shr ax,1, as its much faster on 8088.

8088 cycle times:

        shr reg,1       3

        mov reg,imm     4
        shr reg,cl      8+4*n

@ghaerr ghaerr merged commit 7511c54 into master Apr 9, 2025
1 check passed
@ghaerr ghaerr deleted the paint9 branch April 9, 2025 04:03
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.

1 participant