Programming :: An Assembler Directive To Interpret All Constants In Hexa?
Jul 9, 2011
GNU assembler 2.17 And without having to prefix them. I'm skimming through as info page and can't find any pseudo operator or assembler directive of this type. E.g. 74 would be a decimal number. But I want it to be hexa 74 without the need to write 0x74.
NOTE: as is the GNU assembler.
EDIT: Google led me to discover this:
Quote:
If you write numbers without an explicit indication of the base, the most recent `.RADIX S' command determines how they are interpreted. However, on the one hand, it says the most recent and, on the other one, it applies to GASP, the GNU assembler preprocessor. IDK if it is the same as as (the GNU assembler).
View 2 Replies
ADVERTISEMENT
Oct 29, 2010
What is the best way to use constants in C? I have heard that constants can save ram but my question is do you use it on immediate values, variables that don't change, or codes that repeat them selves a lot
View 6 Replies
View Related
Apr 27, 2011
I have to write a code that converts a sequence of 1's and 0's(block) into their equivalent hexa number and copying to another array(byte). but this sequence is not always of length 8 and you are required to send strlen(sequence)%8 bits back into the string. So i've written down this code and it works well with the sample input but fails in the real program.
Code:
int Convert_encode( char * block,unsigned char * byte)
{
int len,iter,i,j,k,sum;
char * temp=(char *)malloc(4*sizeof(char));
len=strlen(block)/8;
[code]....
View 7 Replies
View Related
Jun 30, 2011
Say I have arrays of constants code...
Is it possible to induce bash to interpret the ${tbl[1]} part to its actual value (1-6) when I reference those particular entries in the arrays?
Using this instruction to do so code...
View 9 Replies
View Related
Feb 14, 2011
how to use absolute sections in gnu assembler?
View 2 Replies
View Related
Jan 16, 2010
I need to write a module in pure assembler.Now the linker needs symbols out of the kernel library to link to ( module_init, module_exit, printk).Does anybody know the kernel library name, or are these symbols only in the compressed kernel image (vmlinuz) ?And if, how can I link to a compressed kernel image ?
View 6 Replies
View Related
Jul 3, 2010
It's good that GCC support intel inline disassembly syntax, but it cannot even simply address local variables/parameters properly, making itself stupid and essentially useless, look at the following:
int myfunc(float f){
int x;
float fa[8];
asm(".intel_syntax noprefix
"
"mov eax, [x]
[Code]...
View 1 Replies
View Related
Jun 16, 2010
I am trying to learn assembly using nasm as assembler. I did not found example related to string operation. I had following example code,
global asm_strlen
section .data
section .bss
section .text
[code].....
my problem is at highlighted line, I am not getting how to copy a byte into 4 byte reg. rather what is syntax of mov instruction to mov byte to WORD DWORD etc.
View 3 Replies
View Related
Mar 21, 2011
i am getting the following errors when i was using iNSPect
[root@localhost iNSpect_4_beta_3]# ./iNSpect -c out.conf -l2 out4.tr
WARNING: packetString in config file not set. Using default of " ".
WARNING: simulationSpeedAtInit in config file not set. Using default of ".01".
WARNING: simulationSpeedMinimum in config file not set. Using default of ".005".
[code].....
View 5 Replies
View Related
Aug 28, 2010
I am looking for a assembler, in my college there is a ia32build assembler. I have tried searching it in Google, but I can't find it. I have x86 processor and I want to install it in Ubuntu 10.4.
Edit 1 : I am not sure about the assembler name but we assemble it by ia32build command.
Edit 2 : The syntax is quite different from nasm. Here's my sample code.
.intel_syntax noprefix
.text
msg: .asciz "Hello World !"[code].....
View 2 Replies
View Related
Mar 4, 2010
presently am doing an LTSP project i have sucessfully insatlled DosBox and Oracle in fedora9 now i wanted to install tsam ( Turbo Assembler )
View 1 Replies
View Related
Jan 21, 2011
Ah, this time you've really screwed it up without covering you traces: F14 does not interpret correctly my (possibly botched up) ACPI tables and HANGS!!! With acpi=off I have to press the power button to switch my desktop off and that is really ANNOYING. Surely the Fedora engineers could have done a better job with this one.
View 14 Replies
View Related
Apr 25, 2011
It looks like I have one hard drive (30 GB) with three partitions, but df says my primary partition is under 9 GB? Shouldn't it be much larger?
Code:
$ sudo fdisk -l
Disk /dev/sda: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004b8d0 .....
View 4 Replies
View Related
Aug 2, 2010
I am using Linux as my OS and using TOP command to measure the system performance. From the readings using the TOP, I have observed the following
(1) The used memory increase significantly from 7% to 99% over sometimes? Is there a sign of memory leak? Does OS play a part in used memory? Will system performance be affected? Will system crash due to 99% used memory?
(2) What is the difference between Memory Buffers and Cached?
(3) From the readings, it was observed that Buffers readings decrease, whereas Cached readings increase over time.
(5) Should TOP be used to take readings for system performance (memory & CPU usage)? What is the recommended method to take readings?
Whereas, my applications only consume a bit of memory and CPU.
View 2 Replies
View Related
Jan 15, 2010
So im setting up my own server never done it before so should be interesting Im going to install apache but it says in my instructionsFirst thing is make sure you open up /etc/httpd/conf/httpd.conf and at least change the ServerName directiveSo ive found the file, and i managed to open it with hte command ed httpd.conf But it just showed a 5 or 6 digit number.Do i need to edit this and why ?What command should i use to edit? what should i put into this file ? how do i close the file when ive edited it?
View 6 Replies
View Related
Feb 14, 2010
I have a number of errors captured by SELinux against NetworkManager - text of one of those is below. I'm not really sure how to interpret it
[code]...
View 1 Replies
View Related
Feb 18, 2010
I access a linux server shell via putty, but many of the keys I use do not translate across, up, down, left and right all are seen as ^[[A, ^[[B, ^[[D and ^[[C; But so is C-up, C-down, C-left and C-right. And enter is seen as C-j (which move down to the next line), and backspace is seen as C-h, which is backwards delete.
How can I stop these keys being translated into other keys (so I can, for example, configure C-h and backspace to perform two different functions) and what's doing this translation (Putty, the kernel, the shell)?
View 4 Replies
View Related
Oct 6, 2010
I've got rkhunter installed and regularly do scans immediately before & after updates & if I get warnings about 'file property updates' after the update I use 'rkhunter --propupd' to give me a clean run.I'm about to setup a ubuntu computer for my nan, I want to enable automatic security updates so she doesn't have to do anything to keep her system secure. I was planning on running rkhunter when I go to her house (about once a month) and check the dates in the resulting rkhunter.log warnings with those in the var/log/apt/history.log to see if legitimate updates caused any rkhunter warnings. I've noticed though that the 'Current file modifiation time:' in the rkhunter.log warnings are incorrect.
My system seems to be about 15 days behind the actual date, I've now run rkhunter --propupd so I have no warnings but got this one off another forum post to show what I mean:
Current file modification time: 1283341157 (01-Sep-2010 06:39:17)
I believe that the '1283341157' is the time in some strange format and the date in brackets is what rkhunter thinks it might be in human format.
1) How to interpret the 'strange date format' (1283341157 in the line above)?
2) If there's a way of configuring the date in rkhunter so that they're correct in rkhunter.log?
3) If there's a better way of keeping her system up-to-date & secure, it's her first computer & she's 86 so I think setting up automatic security updates is the way to go, it'll be one less thing to overwhelm her!
View 2 Replies
View Related
Jul 22, 2010
I want to pass a directive to all but one or two locations. How do I do that?
Like:
<Location /1>
xxx
</Location>
<Location /2>
[code]...
View 2 Replies
View Related
Jul 8, 2009
I used to configure and run PHP script in Redhat Linux System for a long time ago. Now I forgot almost everything in Linux. I downloaded and install Fedora 11 Live CD. Start httpd service(Appache). It does work with html but not PHP script. And I can't remember how to configure the system to interpret PHP script.
View 13 Replies
View Related
Oct 13, 2010
I'm having trouble with a bash script. I have something like this:export VAR=`command`The problem is that "command" can return this: "** NONE **". bash will then replace each of the * by the list of files in the current directory.I want the output to be uninterpreted (i.e. VAR should contain "** NONE **", not "list of files list of files NONE list of files list of files"). It shouldn't be hard but I am unable to figure it out, and I'm not sure how to phrase the problem,
View 1 Replies
View Related
May 19, 2011
I've got a system that is maxing out CPU. Running "mpstat -P ALL 3 5" shows the following.
Quote:
08:30:21 PM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
08:30:24 PM all 100.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1001.00
08:30:24 PM 0 100.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1001.00
[code]....
All 5 groups show the same. My first question is why would CPU0 be the only one with intr/s and the others do not? Info.The OS is RHEL 5.4 running as a VM on ESXi 4.1. Memory doesn't appear to be an issue, the system has 8 GB and its only using about 1.5 GB. Second question, I'm positive the process that is the problem is the tomcat process. Does anyone know a good way to see whats happening with a specific process?
View 6 Replies
View Related
Nov 15, 2010
I downloaded SUSE to a directory and copied that to a CD to use for running a trial on a 950 Mhz laptop. The CD does show a directory Boot and the boot directory does contain files. There is also a file named syslinux.cfg which when viewed from MS XP is identified as a configuration file for MS Office Outlook.
On boot attempts from the CD I get the Error message: No default or UI configuration directive found.Do I have an error on the D/L disk or is my proceedure not correct?
View 2 Replies
View Related
Jun 4, 2010
I want to know how does directive ProxyPass and ProxyPassReverse work. If I have an application on an internal webserver running on port 8080 on Lan but I want it to be accessible on internet via Server A which has public IP but firewall (which I do not have control blocks all except port 80).
Code:
Server A -----------------------------------------Server B
Public IP LAN
(Port 8080 blocked)
if I write
Code:
ProxyPass /application http://192.168.1.5:8080
ProxyPassReverse /application http://192.168.1.5:8080
Will the application be accessible outside. Or do I need to contact sysadmin to open 8080 in A in above diagram. Is there any other way to do the same in apache2.
View 2 Replies
View Related
Feb 25, 2010
I recently bought a Lexmark Interpret S405 printer, and the box says that it's compatible with ubuntu. I downloaded the lexmark-inkjet-09-driver-1.0-1.i386.rpm.sh, which begins installation but gives the error message The installer package is not supported by your native packaging system. The installer will exit. I also downloaded the Linux_S305_E.sh, which doesn't even begin installation. PLEASE HELP, I have two brand new Lexmark printers, (the other being an X5630) and they both refuse to install or i just have no idea how to install them.
View 9 Replies
View Related
Jan 4, 2011
I am trying install rhel 6 on my rhel 5. I have downloaded rhel6.0-20100715.2-server-i386-dvd1.iso (from redhat ftp site) and burned into dvd. After rebooting I pressed F12 and chose cd installation.
I get the following message on my screen.
"ISOLINUX 3.86 2010-04-01 ETCO Copyright (C) 1994-2010 H.Peter Anvin et al
No DEFAULT or UI configuration directive found!
boot: "
View 5 Replies
View Related
Sep 26, 2010
I get the following error message when attempting to boot: No DEFAULT or UI configuration directive found.
View 1 Replies
View Related
Jan 7, 2009
I am running a few virtual domains on Apache/Fedora 9. I have some domains working fine but when I tried to put up another one today I get "Directory index forbidden by Options directiveL : /home/jek/www/AAA/" Now here's the weird part. That message appeas in the error log for domain AAA, whereas the new domain is BBB and has it's own log files defined in httpd.conf. On the browser the Fedora test page is displayed. SELinux is turned off.
View 4 Replies
View Related
Nov 10, 2010
I am trying to salvage the contents of my HD. I have tried to install Ubuntu from a CD (I created) and keep getting the error "No DEFAULT or UI configuration directive found!" My OS is Vista Home.
View 6 Replies
View Related
Dec 6, 2010
So I decided to go on and install 10.04 LTS, because it is LTS... I created the live USB as directed on the Ubuntu download page. I download Universal USB Installer and it says USB created successfully. However, when I boot from the USB the error comes up as mentioned in title... The USB has no problems because I installed 10.10 last time from the very same USB. There's nothing wrong with the procedure because I am following the officially suggested method. Also, nothing wrong with partitions because one instance of Ubuntu is installed and was working fine until I tried to install video drivers (long story)...
View 9 Replies
View Related