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
4
votes
6 answers

16-bit assembly incompatibility with 64-bit windows 7

I recently discovered that 64-bit window won't run 16-bit applications (.com in this case), because 64-bit windows doesn't have a 16-bit subsystem (or so the internet says). I came across this when trying to execute an .bat file that called for…
Erik
  • 155
  • 2
  • 10
4
votes
1 answer

%ld format conversion for portability

I have a code base which is intended to compile without warnings and run without any glitches on multiple architectures, all x86: MSDOS, Windows 32 console mode, Windows 32 GUI mode, Linux 32, and Linux 64. Before adding support of Linux 64, this…
wallyk
  • 56,922
  • 16
  • 83
  • 148
4
votes
2 answers

16-bit C code compiled with GCC

How do I compile 16-bit C code with GCC? I am trying to write a flat bootloader that just writes "Hello World!" to the computer and halts. int main(int argc, char** argv) { char* value = "Hello World!"; __asm { mov si, value …
Cole Tobin
  • 9,206
  • 15
  • 49
  • 74
3
votes
5 answers

Light-weight database engine for Delphi 1?

I'm looking for a light-weight database engine for Delphi 1 (don't ask, it's a long story). Delphi 1 is 16-bit. The engine should compile into the EXE. SQL would be nice, but not mandatory. Any info would be great. Thanks, Carl
Carl
3
votes
3 answers

Strange behavior from interrupt service routine

I'm writing an interrupt service routine which is supposed to process interrupts caused by RTC using int 70h and IRQ8 for use with some timer. Unfortunately, I've been having lots of problems with that, so I decided to separate the issue into…
AndrejaKo
  • 1,721
  • 5
  • 25
  • 41
3
votes
5 answers

Increasing performance of 32bit math on 16bit processor

I am working on some firmware for an embedded device that uses a 16 bit PIC operating at 40 MIPS and programming in C. The system will control the position of two stepper motors and maintain the step position of each motor at all times. The max…
PICyourBrain
  • 9,976
  • 26
  • 91
  • 136
3
votes
2 answers

How to run 16 bit code on 32 bit Linux?

I have written a small 16-bit assembly program that writes some values in some memory locations.Is there a way I can test it in 32-bit protected mode on Linux?
vjain27
  • 3,514
  • 9
  • 41
  • 60
3
votes
8 answers

Make 16-bit code work in WinXP or Vista (or alternately how to find Win98 retail licenses?)

We have thousands of DOS programs that were all written in the 80s using 16-bit C, comprising over 1,000,000 lines of code. Many of these programs utilize libraries that directly access the screen, drive, etc. (and we don't have the sources for…
Beep beep
  • 18,873
  • 12
  • 63
  • 78
3
votes
3 answers

C# - Converting 8-bit or 16-bit grayscale raw pixel data

I need to be able to convert 8-bit or 16-bit grayscale pixel data into a file format that the .NET framework can support. The data I have available is the width, height, orientation (bottom-left) and the pixel format as 4096 shades of gray (12-bit…
Trevor Elliott
  • 11,292
  • 11
  • 63
  • 102
3
votes
2 answers

Convert 16bit Grayscale PNG to HEVC/x265

I want to convert a 12bit image signal to HEVC for effective compression. Because I need to be able to reconstruct the original 12bit signal, the compression needs to be losslessly reversible. At the moment I have the data as 16-bit PNG files. My…
Ben Bezos
  • 43
  • 1
  • 5
3
votes
1 answer

Multiple 16-bit programs running in Windows 7

Good day, I've created a python program to batch up a process we have running at work. Unfortunately, the program we use was written in the 80's, with its last update in the 90s. Its a 16 bit windows 3.1 program. I've enabled Windows 7 to run…
Lance
  • 399
  • 1
  • 5
  • 14
3
votes
2 answers

C++ 16 bit grayscale gradient image from 2D array

I'm currently trying to build a 16 bit grayscale "gradient" image but my output looks weird so I'm clearly not understanding this correctly. I was hoping somebody could shine some knowledge on my issue. I think that the "bitmap" I write is wrong?…
user2316289
  • 39
  • 1
  • 7
3
votes
1 answer

Losing pixel depth when saving PNG image in C#

I am creating a 16-bit grayscale image and saving it as a PNG using C#. When I load the image using GIMP or OpenCV, the image appears with a precision of 8-bit instead of 16-bit. Do you know what is wrong with my code? 1) This is the code used to…
DanInCode
  • 33
  • 5
3
votes
1 answer

How do I copy files from a CD-ROM in [Files] using Flags: external?

I'm writing a new installer for an old cd-rom game that has a 16-bit installer, the installer will need to be on the hard disk and be able to copy files from the original disc. I already have a script set up that can install the game if all the game…
user477276
  • 367
  • 5
  • 20
3
votes
1 answer

Interpret 16bit two's complement in javascript (nodejs)

Hello dear swarm intelligence, One of my current private projects is in the field of the internet of things, specifically LoRaWan and TTN. For easy data-handling I decided to use node-red which is a node-js based flow tool to process the received…