Indexed calling of the opted function #110
isoux
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
Awesome! I’ll look into implementing this as well. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In file BareMetal/tree/master/src/syscalls/system.asm If, for example, the system function
b_system_delay
is called, the CL register is checked 21 times for its turn to be executed...I suggest code with a table of functions that are indexed. The file size is reduced and the executable is about 50 bytes larger after compilation, but the result is that any selected function is started fast just it opted as all the others. There are still plenty of spots in the table to add new system functions without increasing the table, which currently takes up about 280 bytes.
Take a look at the code that I would suggest as a pull request if you like it, and of course it works for me and has been tested.
p.s.
Another small correction to my code followed.
And another very significant. The code is much faster and right...
Beta Was this translation helpful? Give feedback.
All reactions