Computing desk | ||
---|---|---|
< October 28 | << Sep | October | Nov >> | October 30 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
This is some practice code my teacher gave us, and I'm trying to figure out this bit of IA32 disassembly from a C function. Each of the 3 chunks of assembly below corresponds to the 3 lines in this C function (it's a practice problem and we're supposed to figure out the 3 lines of C from the assembly. I have the solution key to it, but it makes no sense and I was hoping someone could help me figure it out):
void Blip(int x, char **y) {
// Line 1
// Line 2
// Line 3
}
Assembly:
Blip:
push %ebp
mov %esp, %ebp
sub $0x10, %esp
mov 0x8(%ebp), %eax
imul 0x8(%ebp), %eax
sub $0x7, %eax
mov %eax, -0x4(%ebp)
addl $0x8,0xc(%ebp)
mov -0x4(%ebp), %eax
mov 0xc(%ebp), %edx
mov (%edx, %eax, 4), %eax
add $0x3, %eax
movb $0x41, (%eax)
leave
ret
Could anyone please help me figure out the assembly? I'm not sure at all which of the variables it's accessing where and when in the code. Thank you for your help!
—Preceding unsigned comment added by Legolas52 (talk • contribs) 08:47, 29 October 2010 (UTC)
void Blip(int x, char **y) {
int t = x * x - 7;
y += 2; /* but the pointer is really incremented by 8 == 2 * sizeof(*char) */
y[t][3] = 'A'; /* == 0x41 */
}
Is there a workstation like Apple's MacBook 15" in form factor, but with a mobile quad-core i7 and up to 16 GB of RAM, for demanding, high-performance scientific applications, from a manufacturer such as Dell, IBM, or HP? (ie top tier) What do professionals needing this type of power typically use? Thanks. 188.174.13.38 (talk) 11:13, 29 October 2010 (UTC)
As I am a new CSE(computer science) student i am facing some problems in learning programming language.how can i learn programming quickly & easily?want to be expert in it.So i need help.So please someone help me.Will be grateful to him.my mail (removed) —Preceding unsigned comment added by Rajib rezwan (talk • contribs) 14:58, 29 October 2010 (UTC)
I have a laptop that won't boot even into safe mode, can I use the re installation dvd to try and fix this problem without having to do a complete re install? It is windows Vista 64 bit on a Dell inspiron thanks. Mo ainm~Talk 16:55, 29 October 2010 (UTC)
I have a large piece of code (10+files, several thousand lines (well its large for what i'm use to)) that i've been given. I'm using the ifort compiler and when i compile and run without any flags i get a seg fault. Using the idb debugger (this is without any debug flags set) it appears to seg fault at a small helper function that only does some basic maths on its inputs so it seems unlikely to be it. BUT when i compile with -g (or -debug extended) the problem disappears which means i cant use the debugger to get more info (like where it crashes and what various variables where before it crashed). Anyone know how i can get more information from the debugger without using any debug flags? Thanks --81.147.84.39 (talk) 17:32, 29 October 2010 (UTC)
I tried merging several video files with mkvtoolnix into one .mkv file. It works ok, but when I open it with VLC it tries to display all the streams at the same time in different windows. Is there any way to stop this? I tried selecting only one stream in VLCs menu but it didn't work. 82.44.55.25 (talk) 19:25, 29 October 2010 (UTC)
Has something happened to Google's system, including its main site, Gmail, etc., on 29 October 2010? — Michael J 19:30, 29 October 2010 (UTC)
Hi, I am trying to set up Boot Camp on my Mac but it has come up with a message saying that I can't that 'The disk cannot be partitioned because some files cannot be moved.' and then instructs me to back up my disk (I have a Time Capsule, so already done that) and use Disk Utility to format the disk as a single Mac OS X Extended (Journaled) volume, which is to be followed by restoring my information to the disk. Problem is, I'm a bit of a technology noob and don't know what any of that means. Can someone offer me a 'for dummies' explanation? Thanks 128.232.247.49 (talk) 19:55, 29 October 2010 (UTC)
When was the fastest computer in the word of a similar speed to an average desktop pc today? —Preceding unsigned comment added by 86.141.156.45 (talk) 20:06, 29 October 2010 (UTC)
So I was banned from CR for trying to paste a message less than 5 seconds after starting a conversation with someone (because it mistook my action as spam.)
Then I decided to delete all Chatroulette's cookies and try again from another location (a different IP address.) Then I got the notice that I was still banned, now under that new IP. They were IPs for my college's network at this point.
What else should I remove/change that identifies me so I can mistake Chatroulette's system into thinking I'm someone else?
(Sorry, but there is no "appeal button," so I must try this other route.) --129.130.252.150 (talk) 20:42, 29 October 2010 (UTC)
I'm trying to play the multiplayer online game "world of warcraft" on my computers (one laptop and one stationary computer) but it won't work on neither. I've tried everything and checked that all ports are open through my firewall and such and followed instructions by Blizzard(the makers of the game) and everything should be in order, except one thing; that the ROUTER itself isn't allowing the ports to go through. I'm pretty sure that's the problem. If u have reason to suspect another reason, please share :) but i'm positive that is the reason the game won't log in. Coz the game itself starts up just fine, but when i try to log on to the game server it fails to connect. And the thing here is that both my computers are "stealing" the net-signal from my friend's router. We both know very little about these technical things of computing and can't get our heads around it, or rather *I* can't get my head around it, coz he with his limited knowledge is of no help anyway.
The router I'm "stealing" network signal from is a : Atheros AR9285 802.11b/g/n WiFi Adapter and I'm wondering if I can adjust these things and allow the necessary ports through the router on MY computers?? or do I have to go on the computer of my friend that is directly connected to the router to adjust? My Hewlett Packard laptop has windows 7 and my stationary pc has windows vista if that is of importance. How do I do this?? How do I proceed: I need some detailed step by step instructions I suspect. And preferably I would like to go through my own computers to adjust this IF possible rather than mixing around on my friend's computer.
(just in case it is important, my stationary computer uses a small device with usb-plug that is called Siemens Gigaset usb adapter 108 to catch the signal from a distance. it's what we call wireless adapter, no? Anyway there it is, in case it is of any importance)
i hope i have given all necessary info for someone knowledgable and skilled to help me.
I really hope someone can help me, I have even subscribed long ahead on the game and at the moment it is nothing but money out of the window when I cannot log in and play.
Crossing fingers that someone can give helpful answers, thank you :)
Wikipedia-GUEST —Preceding unsigned comment added by 84.49.204.143 (talk) 21:44, 29 October 2010 (UTC)
I believe you can access your router settings via a IP address I think, from any computer connected to it. However, to access it it usually requires an username and password. Check your user documentation if you (or your friend) has never used it before (It should be separate from the username and password if the router requires a password to access the internet) . And just a note, I think you should tell your friend that you are stealing their bandwidth. It's only kind to do so. General Rommel (talk) 04:43, 30 October 2010 (UTC)
Don't worry guys, my friend knows I'm "stealing" and he's fine with it, why wouldn't he be? No point for us both to subscribe on internet distribution when we can share. You're right though that he's the one paying for it :P, something which he did before I came into the picture and which he would still have done today whether I was using his net or not. A computer guy i bought my pc from helped us setting it up a long time ago, and my friend was perfectly fine with it, so no worries. Password and username is not required for me to use the net, because it is not secured or locked or what to call it. So I have set my computers to automatically track the net signals and be on net whenever i start up my computers. But how do I know which site is the system page where i can allow the ports through the router? And where to find the adress?
By the way, you say I'm proabbly SOL, i have no idea what that means...
Thanks :)
84.49.204.143 (talk) 09:53, 30 October 2010 (UTC)
Blizzard support has step-by-step instructions for some popular router models [here]. 84.239.160.59 (talk) 08:06, 31 October 2010 (UTC)
Who voices Microsoft Sam? jc iindyysgvxc (my contributions) 23:19, 29 October 2010 (UTC)