mirror of
https://github.com/cemu-project/idapython.git
synced 2024-12-27 02:01:51 +01:00
segment.i: Added get_defsr() and set_defsr()
This commit is contained in:
parent
c6444d4ff5
commit
754622e1c4
@ -27,3 +27,13 @@
|
||||
|
||||
%include "segment.hpp"
|
||||
|
||||
%inline %{
|
||||
sel_t get_defsr(segment_t *s, int reg)
|
||||
{
|
||||
return s->defsr[reg];
|
||||
}
|
||||
void set_defsr(segment_t *s, int reg, sel_t value)
|
||||
{
|
||||
s->defsr[reg] = value;
|
||||
}
|
||||
%}
|
||||
|
Loading…
Reference in New Issue
Block a user