Assembly Guy 72

Honestly, Deepak_31? You think they're still after an answer eight years later, when the question has already been marked as solved? Please refrain from resurrecting such threads in futureā€¦

Assembly Guy 72

I'm not getting the infinite loop locally. What input were you using when the infinite loop happened? Also, my initial comment was wrong, we should be using jge. It's also considered bad practice to not have your last condition a simple fallthrough too.

Assembly Guy 72

There are a number of faults that a program can encounter at runtime, and segfault is a very specific one. I'm not going to give you the answer straight out since this sounds like it could be a homework question, but if you read up on the basics of what causes a segfault, you should be able to spot where you're going wrong. Check out this extract from Wikipedia

Segmentation faults have various causes, and are a common problem in programs written in the C programming language, where they arise primarily due to errors in use of pointers for virtual memory addressing, particularly illegal access.

Illegal access is the key term here. You can only access memory you've allocated in your program.

Assembly Guy 72

You won't need an array. The simplest method to turn an integer into a grade from your table is to use a series of cmp and jg instructions. For example:

cmp score, 90
jg Grade_A
cmp score, 80
jg Grade_B
cmp score, 70
jg Grade_C
cmp score, 60
jg Grade_D
 - - and so on - -

I know you went to arrays for efficiency's sake, but try not to overthink these things. Keep it simple.

You'll need some way of converting the string you're getting from stdin into an integer (IIRC)

Roger_2 commented: please take a look at my code below i would like your information +0

Assembly Guy 72

Oh jolly! A riddle! Not only do we get to guide you through fixing the code, but we also get to make wild stabs and guesses at what exactly the code does, and which errors is is producing. My Saturday nights don't get any better than this.

In all seriousness, you're going to have to provide us with a bit more background info. What's this program supposed to do? What's it not doing that it should? I understand that this is an international forum and there may be a language barrier, but please try to explain as best you can.

Assembly Guy 72

which code(c or c++ or java) you want tell me first

Well seeing as this is posted in the C++ forum, I'm going to make a wild guess that it's a C++ question ;)

Assembly Guy 72

I'm a professional figure skater.

Why else would anyone be here?

Also this has to be put somewhere in here: <div class="derailed">

Assembly Guy 72

aw not that kind of programing

If you don't like streams, calling printf("*143#\n"); from within C++ is valid, so long as you include stdio.h

Assembly Guy 72

Seeing as this is homework, I'm not giving you the tip outright or step-by-step. Follow above poster's advice, but here's some extra food for thought. The ASCII values for a lower case letter and its capital counterpart have some interesting properties. Look at them in hex or in binary form. You can switch from lowercase to capital with a specific bitwise operation and accompanying bitmask.

Assembly Guy 72

Your problem's around these lines

cmp op1, 0p2
je same
jne different

The second operand '0p2' should be 'op2' (zero versus o). Also, for the sake of efficiency, you could/should write the jump for inequality as a fallthrough. The fallthrough will also erase any undefined behaviour around that point. We can't be sure if the JE instruction messes with the zero flag or not.

Assembly Guy 72

It's not the IDE that compiles your source code, it's a program called an assembler. The IDE just provides a flashy GUI front-end to integrate it all, but for assembler it's really not needed. You write your code up in a text file, much like in an IDE, then instead of asking the IDE to run the assembler for you, you just run it directly yourself. Check out NASM, a good free assembler.

Assembly Guy 72

So I think I'd just block every port.

If that's the case, why not just physically disconenct it from all networks?

Assembly Guy 72

That is the source code. [...]

No, no, it's a precompiled package, judging by the filename; it's got 'i686' in there somewhere.

Assembly Guy 72

.ProxyPass isn't working.Why is that?

It's not configured/installed right. That's the best answer anyone can give with the information you've given.

Assembly Guy 72

If following Gribouillis's doesn't solve the problem:

If you can get to any terminal of any sort (chrooting's awesome for moments like these) then run ls -l /bin/bash to see if that's a symlink and what it's pointing to.

Assembly Guy 72

Jean_3, did you read the post just above yours?

First off, please do not post new requests into old threads like this. This thread was originally posted more than half a decade ago; some of the details are now out of data (though fortunately the jist of it hasn't changed), and if nothing else it is problematic if you are adding new questions to solved threads. Please create new threads of your own in the future.

Assembly Guy 72

What compiler are you using, and how are you running it?

For what it's worth, I'll put my money on Turbo C; that typeless main whispers it.

Also works as expected here using GCC 4.8.2 20140206 (prerelease).

Assembly Guy 72

The Mages Guild is committed to rooting out Necromancy and all who practice it :-)

Assembly Guy 72

Yeah I'm going through this with my tishiba laptop. Yesterday I got frustrated & formatted C the drive. I'm thinking about installing Linux OS.

I'm sorry, I don't even... what?

Assembly Guy 72

hi , please convert this block code to intel syntax ( nasm)

Nah, I don't really feel like it.

Assembly Guy 72

See this link

All the best.

Assembly Guy 72

Also, remember that you cannot run 64-bit virtual machines on a 32-bit CPU

Not directly, no, but bear in mind I've been running TempleOS on my 32 bit machine using qemu-system-x86_64.

Assembly Guy 72

you're probably looking at CSS - possibly JS too if you need to control vertical heights.

As diafol highlighted, this isn't a PHP question. However, you've already posted here and gotten some answers so I'll continue.

Could you elaborate on your problem. Do you mean vertically centre items or display images down the page or what?

Assembly Guy 72

Do you know what their DNS server addresses are? If not, go to the admin web page of your router and look there

Correct me if I'm wrong but can't we just point him to Google's 8.8.8.8 and 8.8.4.4 for DNS? Makes life easier :P

Another question on top of rubberman's: what does the ip route command inside your VM return?

Assembly Guy 72

Because of rdesktop!

Sorry, what? Is it just me or is that not even a reason?

Assembly Guy 72

Hi talma, you're new around here. What you've just done is reply to a 4-year-old thread which was solved, with a completely new question of your own. This is known amongst the internet community as hijacking and/or necromancy, and it's frowned upon because it makes things a bit convoluted and disorganised. Please start your own topic in the Assmbly Forum to get help in solving your assembly question.

Assembly Guy 72

For starters, please try and remember that silicon and silicone are two ver, very, very different things. Silicon is what we use in semiconductors, silicone is not :)

1: Yes.
2: Yes, more or less.
3: Machine code is what is put onto the data lines by RAM/ROM. So as a whole, yes the CPU does understand machine code. Microcode is generated internally inside the CPU, so as I said, as a whole, the CPU does understand machine code, due to the fact that the machine code is translated into microcode by the CPU itself.

4: It'd likely boil down to a piece of hardawre known as a PLA. If you're not into electronics, I'll try and explain it simply. It's basically something you can program to do certain actions really fast in only hardware, without the use of any software (eg stored in ROM etc) in the end product.
PLAs can be programmed using flowcharts or various programming langauges.

5: More often than not, in a PLA.

I'm no renowned expert in this field, I don't design CPUs, so have a read through this Wikipedia article for more detailed info.

Assembly Guy 72

I have transparency in my buckyball avatar. I've noticed that on the community member badge, this seems to cause some issues. Is it Fred I see in the background through the transparency? I'm not using the badge anyway, but I just thought I'd let you know.

Assembly Guy 72

which will require your user password (not the root password)

That depends on /etc/sudoers. Sudo can be configured to require the root password rather than the user password. However you are correct in assuming the default is the user's password.

Assembly Guy 72

Awesome, glad to have participated in helping. If you feel the problem's fully resolved, please mark this thread as solved by clicking the little 'Mark Question Solved' button under the reply box :)