Questions tagged [addressing]

153 questions
1
vote
2 answers

C char**, string array null pointer

I've initialized a char** and allocated space using malloc in a loop char *argv[SIZE]; for( i=0 ; i < SIZE; i++ ){ argv[i] = (char *) malloc(64); printf("ADDRESS %d Index %d\n",argv[i],i); } the printf shows addresses going up by 160,…
1
vote
1 answer

Logical addressing numpy mess up with other matrices

I have just found a problem and I don't know if it is meant to be this way or I am just doing it wrong. When I use logical addressing in a numpy matrix to change all the values of a matrix that are, say, equal to a 1. All other matrices that somehow…
1
vote
1 answer

WCF how to use WS addressing standard namespace: “http://www.w3.org/2005/08/addressing”

Calling the wsdl of my WCF web service, I read xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing"…
user2623554
  • 51
  • 1
  • 2
1
vote
1 answer

pointer to variable holding an address

I'm trying to compute a CRC32 for the application code on an 8052 embedded platform. The following is given as a guide to calculating the CRC : void TestChecksum() { unsigned short calc = 0; /* Run the checksum algorithm */ calc =…
David
  • 125
  • 1
  • 2
  • 7
1
vote
1 answer

How do I avoid hard coding array index/indices within a loop in MIPS?

For example, $a0 is an index/pointer $a1 is the address of the array base I want to access each element of the array within a loop, perform an arithmetic operation to that element, then save it to the next. The index should increase +1 on each…
fix
  • 1,425
  • 16
  • 27
1
vote
3 answers

How to get LBA(logical block addressing) of a file from MFT on NTFS file system?

I accessed the $MFT file and extracted file attributes. Given the file attributes from MFT, how to get a LBA of file from the MFT record on NTFS file system? To calculate LBA, I know that cluster number of file. It that possible using cluster…
andwella
  • 83
  • 2
  • 6
1
vote
1 answer

How many memory words are required to store instructions in a computer system

if a computer system with memory module of size 2048 and each word is 8 bits, it has four fields: an op-code field to specify one of 32 operations, a register address to select one of 64 registers, an address mode enabling one of 4 modes and a…
TTT
  • 358
  • 3
  • 6
  • 16
0
votes
1 answer

ip addressing for Nth computers

the question is, calculate these information: "ip subnet zero, first ip, last ip, broadcast, ip subnet mask" for a Class B IP (172.16.0.0/16) for X number of PCs, for example, for 27811 computers...
Hossain Alhaidari
  • 767
  • 3
  • 11
  • 24
0
votes
1 answer

Flex 4 Targeting Components that were created at run time

I have some components that are created at run time, I would like to execute functions in those components during certain parent events. Problem is this only works with components I create before runtime. EG I can go…
Craig Mc
  • 505
  • 1
  • 13
  • 30
0
votes
1 answer

Flex 4 Printing by Adding dynamic items in a print area (AKA. how do I add dynamically named elements to another element on the fly)

I have a number of items I add to the stage dynamically. These are called flexShapeXXX where xxx is typically a unique ID. Now I have created a component to store them in for printing, that I can treat as a virtual page so I can lay out stuff for…
Craig Mc
  • 505
  • 1
  • 13
  • 30
0
votes
2 answers

Powershell; problems setting IP address based on user input

Doing a setup script I want the user to type in a new static IP address for this specific NIC (there is already a static IP on this NIC, so the script needs to change it). But I only get this error message when I give a different IP than the…
0
votes
1 answer

Jump addressing from PC to a target

Suppose we needed to jump to the memory address 0xAE87698C. If the current PC value is 0xAF70018B show the j instruction to perform the jump (display it as both a 32-bit binary number and as an equivalent hex value) I know I need to shift one of…
0
votes
0 answers

Usable content addressable storage (like git or nix)

Is there any piece of software which you can use purely as a content addressable filesystem, for say the /home/user folder? Lately I've been diving into Nix and git a little bit, and I got interested in the usage of content addressable file systems.…
0
votes
0 answers

RIP-relative addressing on x86

I'm not really experienced with x86 assembler and try to debug a problem related to a bug in mach_inject. The original code looks like this (function mach_inject in mach_inject.c): #if defined(__x86_64__) imageOffset = 0; // RIP-relative…
Albert
  • 65,406
  • 61
  • 242
  • 386
0
votes
0 answers

How is data written into FLASH MEMORY by pages?

Note: FLASH memory is a type of EEPROM. But when I say EEPROM, I exclude FLASH memory. I have been checking many sources but could not find a clear cut answer on this. From what I read, it looks like most ordinary EEPROMS -nowadays- utilize SPI or…
Xfce4
  • 557
  • 5
  • 28