by strommen · 11y ago · 0 comments
But I'm kinda missing the point. I think it would be very helpful to put some corresponding C (or pseudo-C) code. I understand assembly, but it would take me forever to parse out what this program does.
Also, a few design issues (on Windows 8, Chrome):
- The bold font in the registers is difficult to read.
- The dark colors (blue and maroon) in the register names are difficult to read.
- The columns of the register table don't quite line up with their headers.
That's not the point. All this is trying to show is how assembly and a CPU works. Understanding the program is secondary.
Additionally there is no C code for this as the assembly was written directly.
unsigned short data[8] = {0, 0, 0, 0, 0, 0, 0, 0};
for(int i=0;i<8;i++) {
data[i] += 0xff1;
}for(int i=0;i<8;i++) {
data[i] += 1;
}data[0] = 0x7fff;
data[0] += 1;
data[0] += 1;
And so on.
So yea, nothing special.
I agree though that a more interesting example would be nice and I'll try to come up with one even with what it can do now.