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

Decompiling a 16-bit dos application

I have a very old application which I bought about 15-years ago, it consists of 5 .exe files used for storing patients' profiles and information. The problem is that this application was programmed to work on a specific computer. And because I have…
4
votes
4 answers

sine function on 16-bit microcontroller

I need to generate a sine wave to fill a char table of size 1024. The word size on the microcontroller is 16-bit and floating-point operations are not available. The sine wave itself will oscillate between the value of 0 to 255, with 127 being the…
sj755
  • 3,944
  • 14
  • 59
  • 79
4
votes
2 answers

How to make keras ImageGenerator load 16-bit images properly?

I've searched for similar questions but found no solution to what i am trying to do. I have 16-bit grayscale images, and i am trying to fit them in keras ImageDataGenerator. When using functions like: flow_from_dataframe, it yields images all with…
4
votes
3 answers

Python: Manipulating a 16-bit .tiff image in PIL &/or pygame: convert to 8-bit somehow?

Hello all, I am working on a program which determines the average colony size of yeast from a photograph, and it is working fine with the .bmp images I tested it on. The program uses pygame, and might use PIL later. However, the camera/software…
Ain Britain
  • 370
  • 4
  • 15
4
votes
1 answer

The first row is printing junks. Cannot identify the error

The first row is printing junks. I tried to switch things offset,index etc. But the first line is always wrong regardless of what the string is. mov AX, 0b800h mov ES, AX nums db ' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16…
nomad
  • 43
  • 4
4
votes
5 answers

How to convert OWL/BP7 application to Delphi?

Which tool/approach would you suggest to convert of a large 16bit Windows GUI application, written in old Borland Pascal 7 / OWL, to Delphi? Understanding the pretty heavy differences between OWL and VCL, as well as the differences between the…
sleepy012
  • 171
  • 1
  • 5
4
votes
0 answers

24-bit and 16-bit to float number in C#

I have a 32-bit tiff file which stores 4-byte values per pixel. I used BitConverter.toSingle() to convert each 4-byte values to the pixel value and it works fine. But the problem is I have 24 and 16-bit tiff files which there are 3 and 2 bytes for…
Nasser Tahani
  • 725
  • 12
  • 33
4
votes
2 answers

16-bit linking under linux

I'm using NASM Assembler under linux when I use the command "nasm -f elf -l hello.lst hello.asm" it works fine but when linking with gcc "gcc -o hello hello.o" it generates an error : hello.asm:(.text+0x4): relocation truncated to fit: R_386_16…
Vanddel
  • 1,094
  • 3
  • 13
  • 32
4
votes
4 answers

Write to 16 bit BufferedImage TYPE_USHORT_GRAY

I'm trying to write 16 bit grayscale imagedata to a png using BufferedImage.TYPE_USHORT_GRAY. Normally I write to an image like so: BufferedImage image = new BufferedImage(width, height,…
Erik Stens
  • 1,779
  • 6
  • 25
  • 40
4
votes
0 answers

Any insights on this Microsoft C 5.1 floating point and DOSBox weirdness?

This is a fantastically strange bug that has been tweaking my noodle for the better part of a day; it took me some time to boil it down to this. The setup: Microsoft C 5.10 (~1988) DOSBox 0.74 Windows 10 (64-bit) The code (double.c): #include…
Neil C. Obremski
  • 18,696
  • 24
  • 83
  • 112
4
votes
2 answers

Write graphics pixels in 16-bit assembly

I'm trying to develop my own very basic operating system for educational purposes. While coding the kernel, I tried to set color to some pixels on screen to make it look better, but I failed. I used INT 10h with AH = 0CH with video mode 13h (320x200…
Moe
  • 432
  • 1
  • 6
  • 21
4
votes
2 answers

Unresolved external (old compiler)

I'm trying to compile C program with ASM procedure. It should be 16-bit, so I'm using Visual C++ 1.0 and MASM 6.11. ASM code: .MODEL MEDIUM EXTRN first:WORD, second:WORD, third:WORD .CODE _Add_Ext PROC FAR mov AX, first add AX, second …
4
votes
1 answer

How to convert two 8-bits to 16-bits and vice versa in Javascript?

I know this has been asked before, but I have not been able to reach a solution. I apologize if the topic is duplicated, but I think it's not. I have a number extracted from a Uint16Array to convert to a pair of 8-bit numbers and does it well, but…
cucho
  • 75
  • 2
  • 5
4
votes
1 answer

Building 16 bit os - character array not working

I am building a 16 bit operating system. But character array does not seem to work. Here is my example kernel code: asm(".code16gcc\n"); void putchar(char); int main() { char *str = "hello"; putchar('A'); if(str[0]== 'h') putchar('h'); return…
4
votes
1 answer

How can I compile C/C++ to a CP/M-86 executable (CMD)

I have this project: Compile a C/C++ program to a CP/M-86 executable (CMD-file) with a modern compiler. The target architecture is 16-bit x86. You may think I am crazy but I am doing this for fun and to learn about CP/M-86 and low level x86…
pvh1987
  • 621
  • 5
  • 8
  • 12