Questions tagged [16-bit]

Referring to computer architecture with addresses and other data units 16 bits wide.

In computer architecture, 16-bit integers, memory addresses, or other data units are those that are at most 16 bits (2 octets) wide. Also, 16-bit CPU and ALU architectures are those that are based on registers, address buses, or data buses of that size.

414 questions
-2
votes
1 answer

MATLAB: playing 16-bit audio

I have a matrix (n,16) filled with audio samples of 16 bits each. So the matrix could look like: [0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1; 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1] and so on. How can i actually play this as sound? sound() is using double floating…
-2
votes
3 answers

How to convert 16 bit integer to 8 bit without loosing the data values of the 16 bit integer when the range of 16 bit integer is 0-255

int samples = 8; for (unsigned int i = 0; i < (pow(double(2),samples)-1); i++) { unsigned int number = i << 1; } I am doing the coding in C++ using Opencv library. I want to do bitshift through this and this should be in the range of 0-255 but…
hawkeye
  • 349
  • 4
  • 21
-3
votes
1 answer

Arithmetic with only 16-bit signed words

I am trying to perform arithmetic using only 16-bit signed words. I need to be able to perform addition, multiplication, etc. As an example I need to subtract two data values, below is an example: 7269.554688-46.8 or 4385.6616210938 + 32.2 However,…
Veridian
  • 3,531
  • 12
  • 46
  • 80
-3
votes
2 answers

16bit floating point

I am having trouble understanding 16-bit floating points for an upcoming exam. I'm having the following digits in binary(after conversion); +11100.1110002 = 28.8752. I got 28 easily, but how do I get '875' ? Thanks
Chris Arom
  • 9
  • 1
  • 6
-3
votes
1 answer

How to reverse the byte shifts after I have extracted a value in C?

void check_drop(char *drop_pathname) { FILE *fp; fp = fopen(drop_pathname, "rb"); int count = 0, pathname_length = 0, c; uint8_t drop_hash = 0, current_hash = 0; while ((c = fgetc(fp)) != EOF) { drop_hash =…
Kenny
  • 1
  • 1
-3
votes
1 answer

What will be the result of executing the following assembly code snippet?

Assembly code is: LAHF AND AH,10H JZ 50H What will be the result?
merve
  • 1
-3
votes
1 answer

Change current directory to the root and display it

I tried to use interrupt 3bh/21h for change directory to the root and display it, but that doesn't work. I copy program to c:/folder and execute it. .model tiny ORG 100h .DATA root db "\",0 buf DB 64 dup('$') .CODE start: mov ax,…
lifetowin
  • 107
  • 2
  • 11
-7
votes
1 answer

Delphi - Rumor about run 16-bit assembly writing a sys file on Windows 10

I heard a rumor: one could run in Delphi 7, writing a Driver(Sys file) and loading it, a program, that using IN and OUT instructions could use the motherboard beep, and make it sound a little melody. The interesting is that was in Windows 10 using…
-8
votes
1 answer

Run a 16bits application on Windows 64bits

I need run a 16bits application on a windows 64bits without virtualization or XP mode. Do you have a solution ? My application have an user interface and she need to print and to access the disk. It's a old monster, we don't have the source code…
1 2 3
27
28