Questions tagged [addressing]

153 questions
0
votes
1 answer

16 bit logical address to 16 bit physical address

I'm studying for finals. I am studying this question: Convert the following 16-bit logical address into the 16-bit physical address given the 6-bit page number and 10-bit offset. Use the supplied process page table. Logical Address…
SSI
  • 181
  • 1
  • 2
  • 8
0
votes
0 answers

Pages In Virtual Address Space Equation

I have been given the following problem to work out..but not sure I am on the right track.. If a virtual address of 2GB is divided into 4k pages how many pages would exist in the virtual address space. I have worked it out that if 231 = 2GB and 212…
Mark
  • 11
  • 6
0
votes
2 answers

Cause PostBack and Call Event Fired By Server-Side Button (ASP.Net Button)

I have yet another strange need. I have a jQuery dialog that has a dynamic button ( My Button that will be "fired": My Hidden input with the postback val:
clockwiseq
  • 4,189
  • 9
  • 38
  • 61
0
votes
1 answer

Using SIZEOF operator with indirect addressing mode in MASM

I'm trying to get the size of a string that esi holds the address of the first byte. mov ebx, SIZEOF [esi] Why won't this run? For an error it gives me error A2081: mi, for that line number.
0
votes
2 answers

Nasm how to access dds and dws under a specific label?

Considering the following label: foo: dw 0 dd 0 Now how can one access the double word or dd(word?) under the foo label from another label? bar: ;Subroutine mov eax, [foo] ;Now how can I move the value stored in foo's dw into eax for…
The amateur programmer
  • 1,238
  • 3
  • 18
  • 38
0
votes
1 answer

WCF - remote service without using IIS - base address?

I'm trying to get my head around the addressing of WCF services. We have a client-server setup where the server occasionally (maybe once a day) needs to push data to each client. I want to have a lightweight WCF listener service on each client…
Mark Pim
  • 9,898
  • 7
  • 40
  • 59
0
votes
0 answers

Memory addressing in kernelmode (read 32-bit subsystem data from 64-bit driver)

I'm trying to get some information about how the x86 subsystem works within the 64-bit os and how it is addressed. As example: If a (64-bit)driver inside the windows kernel tries to read a memory part of a 32-bit subsystem process, how do you…
0
votes
1 answer

Application bundle on OS X does not work, file addressing problem

My application requires a XML file to work and it doesn't even start without the file. Why I bundle my app as a JAR file it works fine as long as the XML file is placed in the same directory as the JAR file. When I'm exporting the project as an OS X…
Peter
  • 617
  • 1
  • 7
  • 13
0
votes
0 answers

Is negative offset address valid in addressing?

Hi I am taking up a course on 16-bit assembly programming using TASM and I would like to know if when the value inside a bracket or the address becomes negative, would it become an error or proceed accordingly? e.g. BP=94F7h, SI=0EF89h MOV…
Aldwin
  • 23
  • 1
  • 1
  • 7
0
votes
1 answer

Using references to access class objects C++

This one has me stumped. What I'm trying to do is get a reference variable in a wrapper class to point to a struct object in the class it wraps so that any setting of variables in the struct from other classes that use the wrapper class, actually…
0
votes
1 answer

Static or dynamic width access to computer BUS?

Suppose we have a simple processor, could be an embedded system, with one system bus, for the sake of the argument, a 32bit bus. Now, if we have a couple of Peripherals, one named PER0 for example, attached to the bus, we can do two things: Allow…
Vidak
  • 1,083
  • 14
  • 29
0
votes
4 answers

C++ array accessing

let's say I have: int test[10]; on a 32bit machine. What if I do: int b = test[-1]; obviously that's a big no-no when it comes to access an array (out of bound) but what actually happens? Just curious Am I accessing the 32bit word "before" my…
Gianluca Ghettini
  • 11,129
  • 19
  • 93
  • 159
0
votes
1 answer

Alignment network needed for loads?

I came across this line - "In any case, an alignment network is needed for loads" while reading some stuff on Memory addressing in Computer Architectures and did not understand what it meant. Does anyone know what it could mean?
pikachu
  • 602
  • 8
  • 17
0
votes
1 answer

about indirect addressing like %segreg:disp(base,index,scale),foo

movl $0x14,0x4(%rax,%rdx,1) meas %rax+%rdx*1+0x4 = $0x14(20) but: mov 0x0(,%rax,8),%rax which is base segment resgister ? what is this instuction meas?
DaVid
  • 287
  • 1
  • 2
  • 10
0
votes
1 answer

Addressing in x86

I have got a problem with addressing in x86. Can someone tell me what this does: mov 4000(%ecx, %ebx, 4), %eax