![]() |
|
#1
|
|||
|
|||
32 bit assembly code doesn't work on 64 bitHi,
The code snippet below works for Linux 32 bit but does NOT work for Linux 64 bit : Code:
If i change the position of print command (print command below) to print just before IN(inl) instruction, the code works. Code:
The below code works on Linux 64 bit, the print command place is changed. It is moved just above the IN(inl) command. Code:
Can any one tell me how can solve this problem ( i dont want to use print command to make the code work) and why is this happening. For the reference complete assembly file is attached (It works on Linux 32 bit). Thanks |
|||
|
#2
|
|||
|
|||
Re: 32 bit assembly code doent work on 64 bitI presume you obtained that code by using something like:
Code:
I do not have a 64 bit system so can't be of much help (even if I did I wouldn't be of much help) I would run the program within gdb and see what exactly is going on (and not). As you can tell this forum does not get a lot of traffic. Did you consider posting the C code which fails on the C forum which does? Also tell what exactly happens when the program is successful and when it fails. |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| my code has errors.. HELP | bengt23648 | C Programming Language | 5 | 18-Aug-2007 10:48 |
| Database Program | goldfish | C Programming Language | 6 | 13-May-2006 14:12 |
| Random access files | Krazy_yA | C Programming Language | 6 | 07-May-2006 02:44 |
| functions seems not to exit from a certain code block | jaro | C Programming Language | 3 | 22-Mar-2006 00:08 |
| Help in C Print is not working with LinkList | batman3280 | C Programming Language | 3 | 09-Mar-2006 20:03 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The