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
0
votes
1 answer

File not opening in masm32

My program asks for a filename to be read, then it should produce a clone of that file with the filename "Clone_originalfilename". This is my block of code: .data filename db 100 db ? db 100 dup (0) copyfile db "Clone_",…
rjk
  • 61
  • 5
0
votes
0 answers

Creating array reset I flag? C++ / asm

I've got a problem with interrupt flag being reset. After setting the interrupt flag to 0 with asm cli, it comes to a line of code char* c = new char[size], and when it finishes initializing that array, it resets the I flag to 1. How can i make it…
0
votes
2 answers

Converting 32-Bit Real to 2x 16-Bit Bytes

I'm trying to send a 32-Bit Real across a CAN communications (IFM) but the CAN comms only accepts a 16-Bit value. If the value I'm trying to send goes above 255, it resets back to 0 and continues in that pattern. I therefore need to split the 32-Bit…
LBPLC
  • 1,570
  • 3
  • 27
  • 51
0
votes
1 answer

Qt - Cannot export QImage to 16bit bmp

I have created a simple application and I need export from pixmap to the 16-bit bmp image. I have several pixmap items so I have the for loop like this where I first create QImage and convert it to Format_RGB16: for(QList
Gresthorn
  • 91
  • 1
  • 13
0
votes
1 answer

Using Visual Studio WPF application and 16-bit command.com

I get an error when calling a program written in VS2013 vb.net from an older 16 bit MSBasic program but it works if I change from the WPF based library to GDI+ based library. First some background: The PDFSharp library from http://www.pdfsharp.net…
Jeff
  • 141
  • 8
0
votes
3 answers

16-bit fixed point arithmetic multiplication

I have 2 data values (A = 0.00537667139546100 and B = -0.0182905843325460) and I want to multiply them using 16-bit fixed point arithmetic by using round off method. How should I do that? How should I define the both data? Is it reg or signed? Is…
Jack93
  • 21
  • 1
  • 4
  • 13
0
votes
0 answers

Why can't a Java 7 or greater Runtime.process spawn multiple simultaneous ntvdm's?

Running on is 32 bit Windows Server 2007 Standard Service Pack 2 using Intel XEON CPU. I work in the enviable position to have server software that must run 16 bit software ... :) And we have a server that serves a 16 bit program over a socket to…
The Coordinator
  • 13,007
  • 11
  • 44
  • 73
0
votes
1 answer

Strange number after reading from binary file

I would like to write hex 32 bits numbers to binary file and than read some of them using reinterpret_cast and read e.g. 16 bits number. I am reading only 16 bits because it determines a size of packet. In the code there is an example. Maybe the…
user2856064
  • 541
  • 1
  • 8
  • 25
0
votes
1 answer

What is the most negative number that can be represented in binary?

Can someone explain how to find the answer to this question? I need to find the binary representation in 16-bit 2's complement.
Payne's World
  • 17
  • 1
  • 4
0
votes
2 answers

How do I print a specific bit of a number?

I'm struggling with this question: Prompt the user to enter a number, print the number in 16-bit two's complement To print the number you will print each bit as either the string "1" or the string "0", using a loop that will print one bit in…
zaynv
  • 235
  • 2
  • 4
  • 15
0
votes
1 answer

output stream is saving only half of 16 bits

This is what I've got: Main: buff.clearColor((short)0x00ffff00); - - - - - - Buffer: DataOutputStream dataOutputStream = new DataOutputStream(out); for (int i : colorBuffer) { dataOutputStream.writeShort(i); } void clearColor(short c) { …
keid
  • 91
  • 1
  • 10
0
votes
2 answers

Creating 16 bits image with libpng

I'm trying to write a 16-bit RGB image using libpng where each point color comes from an input "array" instance. The following code does work but produces 8-bit. template void savePNG(Array2 > *arrayImg, const std::string…
Rufus
  • 15
  • 2
  • 8
0
votes
0 answers

How to deal with signed numbers correctly and still use "+"

library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.NUMERIC_STD.ALL; entity alu_16 is Port ( a : in STD_LOGIC_VECTOR(15 downto 0); b : in STD_LOGIC_VECTOR(15 downto 0); sel : in STD_LOGIC_VECTOR (1 downto 0); …
marshmallow
  • 158
  • 1
  • 11
0
votes
2 answers

How to retrieve product of multiplication in Assembly?

For example, the code should basically do this: (1*10)+(2*10)+(3*10)+(4*10) = total xor bx, bx mov bx, 1 loopHere: mov al, bx mov bl, 10 mul bl ; add total, inc bx cmp bx,…
wema
  • 3
  • 2
0
votes
1 answer

Writing OpenEXR 16bit image file in C++

I am trying to write a 16bit texture rendered with OpenGL using OpenEXR, following the example in page 4 from the documentation, but for some reason my code crashes when executing file_exr.writePixels(512). Is there anything I am missing…
Dan
  • 1,466
  • 1
  • 13
  • 27