Questions tagged [addressing]

153 questions
1
vote
2 answers

8086 assembly: MOV part of a string into a variable

Assuming I have a string of ascii characters such as "652+346*779=", and I want to move some characters FROM this variable TO another variable... Buffer is the string (in this case "652+346*779=") lengthofnum is the length of the number in question…
user979388
  • 53
  • 4
  • 8
1
vote
1 answer

Assembly Language Indirect Addressing

I am working through some indirect addressing problems and I am not sure how to properly count bytes. We are given this code: .data v1 db 9,7,5,3,1 v2 dw 0 v3 dw -1 v4 db '$' mov dx,offset v2 mov ah,9 int 21h The question asks how many…
raphnguyen
  • 3,565
  • 18
  • 56
  • 74
1
vote
1 answer

Address and data lines - how to calculate storage capacity

I have been asked the following question A memory device has 16 address lines and 64 data lines. Calculate the storage capacity of the memory in bytes and kilobytes I know that if there are 16 address lines, there are 2^16 = 65,536 addressable…
EML
  • 395
  • 1
  • 6
  • 15
1
vote
1 answer

Memory allocation when casting to a VLA type

I am puzzled by the memory allocation and accesses to a matrix of pointers in an application I am working in. There is a matrix defined as: typedef double (*foo)[n/m][m][m]; Which I understand to be a three-dimensional matrix storing pointers to…
Juan González
  • 177
  • 1
  • 3
  • 10
1
vote
2 answers

PyCUDA Memory Addressing: Memory offset?

I've got a large chunk of generated data (A[i,j,k]) on the device, but I only need one 'slice' of A[i,:,:], and in regular CUDA this could be easily accomplished with some pointer arithmetic. Can the same thing be done within pycuda? i.e…
Bolster
  • 7,460
  • 13
  • 61
  • 96
1
vote
2 answers

Do modern computer systems (x86 architecture) have virtual adressing independent of the OS?

Sorry if this question sounds a little confused or jumbled, but I feel quite a bit of confunsion over this concept. What Im wondering is, if I were to write a kernel for "bare" computer hardware in C/ Assembly, would I be able to use virtual…
exliontamer
  • 95
  • 12
1
vote
2 answers

Concerning real mode physical memory addressing

Me and my friend were brainstorming about a question concerning physical memory addressing in real mode and we couldn't wrap our heads around it. Here goes. In real mode 16 is multiplied to the segment selector register and added to the offset…
Micky
  • 63
  • 4
1
vote
1 answer

Can you subtract two pointers in assembly language?

I ran into to the following bit of code and am trying to conceptually understand it: mov si,offset v5 mov di,offset v2 sub si,di v5 and v2 refer to the following data: v2 dw 4 v5 dw 3 So from my understanding, this seems to touch on the concept…
user10335564
  • 133
  • 3
  • 16
1
vote
1 answer

Compiling MIPS to use branch instead of jump

Having the following very simple c program: #include #include int main() { char *buffer = (char*)malloc(20); } And Compiling it with mips-linux-gnu-gcc, it looks like the call is compiled to the following…
macro_controller
  • 1,469
  • 1
  • 14
  • 32
1
vote
1 answer

how Byte Address memory in Altera FPGA?

I worked with megafunctions to generate 32bit data memory in the fpga.but the output was addressed 32bit (4 bytes) at time , how to do 1 byte addressing ? i have Altera Cyclone IV ep4ce6e22c8.
0xDEADC0DE
  • 323
  • 3
  • 12
1
vote
2 answers

Addressing in CSS in Flex: Buttons in RichTextEditor only?

I want to change the font characteristics for buttons in the toolbar of the RichTextEditor, but I want them to be different than other buttons in my application. Is there any way to do this with just CSS? I know that I can do it with setStyle if…
Dan Rosenstark
  • 68,471
  • 58
  • 283
  • 421
1
vote
1 answer

Move address to register by using the indexed addressing mode

Is it possible to calculate an address by using the indexed addressing mode syntax and store it into a register? Something like the following (wrong) expression (in AT&T assembly syntax): movl $dataarray(,%edi,8), %eax I know that the indexed…
cppstudy
  • 323
  • 4
  • 21
1
vote
1 answer

Gurux DLMS communication addressing

I've an existing Actaris Electricity meter system and I've got only few information about it. I have to write a new program to replace the current one that is reading data from the meter. I'm trying to listen into the current communication throught…
1
vote
3 answers

How many number of bits stored in a memory location in PDP 11

PDP 11 is said to be word addressable which means every data access returns 16 bit data. Suppose I give a read request for address 100 in memory. Will it return 8 bits(LSB) from address 100 and 8bits(MSB) from address 101. And also as PDP 11 has 16…
sandywho
  • 353
  • 1
  • 7
  • 16
1
vote
2 answers

Get the rows of a matrix using another matrix

I'm trying to find a vectorized way to do the following - X = 0 1 5 5 -1 8 > w=[false true; true false; false true] w = 0 1 1 0 0 1 I want to index into X's rows using the columns of w, so the first column of…