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

Function Repository for call_scm_func #5

Open
OrionSR opened this issue Jul 15, 2020 · 1 comment
Open

Function Repository for call_scm_func #5

OrionSR opened this issue Jul 15, 2020 · 1 comment

Comments

@OrionSR
Copy link

OrionSR commented Jul 15, 2020

The idea is based on the Online Script and Template Repositories available through the menu system of the 010 Editor. The repositories contain a list of user and creator made examples that can be adapted to other purposes or used as is. I was thinking call_scm_func would be a good response to requests for custom opcodes from new coders.

Why reinvent the wheel? I've only seen a handful of examples of call_scm_func, and have only written a few myself. I think I'd be more likely to use and write scm functions if they were easier to find or share.

For context, I figured my memory management scripts would be a whole lot easier to write if the read and write memory commands included a parameter of an offset from the initial address. For that matter, even easier if array parameters for index, record size and field offsets were also part of the command. Something like,

`0AB1: call_scm_func @WriteMemory 0xBA86F0 size 2 value 1 virtual_protect 0 offset 0 array_index 3 record_length 40 field_offset 20'

Something like this would work well for read and write, but how could this be written as a conditional command? That's a nice bonus to the aDMA strategies I've been using for embedded scripts; the form for reading and writing addresses can be used directly in conditional commands.

@x87
Copy link
Contributor

x87 commented Jul 22, 2020

I'd seen a few (not very successful) attempts on making a list of SCM functions. Do you have an idea on how to provide a convenient way for the community to share the functions?

I can help with publishing the repository anywhere including the docs site, here at GitHub, sannybuilder.com and/or cleo.li, or include with Sanny.

@x87 x87 added the discussion label Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants