The Dink Network

Toof's Profile

duck.gif
Toof
Peasant He/Him
I disagree. 
My biography is classified, 'cause it's classy.

Web Page http://toof17.github.io/toofweb/
Private Message

2018-10-21 18:28:42
duck.gif
Toof
Peasant He/Him
I disagree. 
First function seems like success...
void get_gvarval(void)
{
	// &gvar is a copy of target global variable
	// here is set to 7 for testing purposes
	int &gvar = 7;
	
	
	// var we wanna extract
	int &innervar = 0;
	
	// inner var bit range
	int &rangestart = &arg1;
	int &rangeend = &arg2;
	
	//rest
	int &counter = 0;
	int &adder = 0;
	int &increment = 1;
	
	loop:
	if(&counter < 32)
	{
		if(&counter >= &rangestart)
		{
			if(&counter < &rangeend)
			{
				&adder = math_mod(&gvar, 2);
				wait(1);
				&gvar / 2;
				wait(1);
				&adder * &increment;
				wait(1);
				&increment * 2;
				wait(1);
				&innervar += &adder;
				wait(1);
			}
			if(&counter == &rangeend)
			{
				&adder = math_mod(&gvar, 2);
				wait(1);
				&adder * &increment;
				wait(1);
				&innervar += &adder;
				wait(1);
				return(&innervar);
				kill_this_task();
			}
			&counter += 1;
			goto loop;
		}
		&counter += 1;
		goto loop;
	}
	&counter += 1;
	goto loop;
	else
	{
		return(&innervar);
		kill_this_task();
	}
}


So, if you wanna read Bob's part of global variable (bits range 0, 1), it will extract it, and put it into a useful number.

Now to reverse the process...

Toof has released 4 files

TitleCategoryAvgUpdated
Adventurer's AdventureD-Mod, RompGood 8.5February 2nd, 2025
Dink Hotel (The)D-Mod, RompGood 7.1April 2nd, 2019
Golden DuckD-Mod, RompGood 8.7October 4th, 2018
DinkC Syntax Highlighting for Notepad++ DarkDevelopment, UtilityN/AJuly 18th, 2018

Toof has written 2 reviews

TitleFileTypeScoreDate
In a gadda da Brassweasel... Search (The)NormalGood 8.3October 1st, 2018
The good, the bad, and the this review The DiscipleFeaturedExceptional 9.2September 18th, 2017