16-bit Questions

10

Solved

Assuming I am really pressed for memory and want a smaller range (similar to short vs int). Shader languages already support half for a floating-point type with half the precision (not just convert...
Hunger asked 23/4, 2011 at 20:54

5

Solved

When I add two values in 16 bit assembly, what is the best way to print the result to console? At the moment I have this code: ;;---CODE START---;; mov ax, 1 ;put 1 into ax add ax, 2 ; add 2 to a...
Mousseline asked 22/11, 2010 at 10:50

7

Solved

I am trying to install Sheridan controls (ActiveThreed 2.01) on Win7 64-bit, but evidently it is a 16-bit installer so it won't execute. What would be the best way to get round this problem? Ca...
Lipase asked 2/2, 2012 at 3:37

2

Solved

I realize that there will likely be no special converter programs or anything easy like that for such a task, but it imperative that I find some way to get a 16-bit program to run in 64-bit Windows...
Tabshey asked 2/9, 2013 at 16:5

5

Solved

I've been wondering this for a long time since I've never had "formal" education on computer science (I'm in highschool), so please excuse my ignorance on the subject. On a platform that supports ...
Subcortex asked 28/4, 2011 at 0:53

3

Solved

I am trying to write a compact and simple noise function with a strictly FP16 limit. This is with what I came out so far, but I think somewhere on the operation the number gets too small for fract ...
Apartheid asked 24/11, 2012 at 11:7

6

As a small experimental music piece I am attempting to program a song in standard C. The code outputs a raw PCM file which can be imported into Audacity. At the moment everything works as expected,...
Dow asked 24/7, 2010 at 14:7

6

Solved

I am going through some example assembly code for 16-bit real mode. I've come across the lines: mov bx, cs mov ds, bx mov si, OFFSET value1 pop es mov di, OFFSET value2 what is this doing...
Belinda asked 3/11, 2009 at 19:36

2

Solved

Why do we shift by 2 the sign extended 16bit constant in branching instruction in MIPS? I am confused with this idea. What good does this shifting brings to the sign extended 16 bit constant. Here ...
Programmer asked 7/12, 2012 at 10:19

2

Solved

Does someone know how to swap the values of 2 registers without using another variable, register, stack, or any other storage location? thanks! Like swapping AX, BX.
Leucine asked 20/10, 2014 at 15:21

4

Solved

I'm trying to get the following result 00000000000000101 from this input 5. This my code and it doesn't make sense: public static int get16Bits(int x) { System.out.println((x & 0xffff) - ((...
Granule asked 22/9, 2017 at 12:44

3

Solved

I like a lot of what I've read about D. Unified Documentation (That would make my job a lot easier.) Testing capability built in to the language. Debug code support in the language. Forward Decla...
Wenda asked 30/7, 2009 at 17:5

2

I began studying assembly this year in my school, and we just started learning about pixels. Our teacher gave us some code and told us to mess around with it, he also told us to try and implement ...
Osmanli asked 4/12, 2015 at 13:50

4

Solved

How can I convert and save a 16 bit single-channel TIF in Python? I can load a 16 and 32 bit image without an issue, and see that the 32 bit image is mode F and the 16 bit image is mode I;16S: im...
Escolar asked 30/8, 2011 at 17:35

3

Solved

I have been looking at this code and I'm confused about the rep cmpsb line. .LOOP: push cx mov cx, 0x000B ; eleven character name mov si, ImageName ; image name to find push di rep cmpsb ; te...
Risley asked 11/5, 2012 at 13:43

6

I am trying to represent 32768 using 2 bytes. For the high byte, do I use the same values as the low byte and it will interpret them differently or do I put the actual values? So would I put someth...
Esmeralda asked 22/5, 2011 at 20:25

2

Solved

I am writing some little tools for MS-DOS. Now I'm writing a Shutdown.com, like for Windows XP and greater. I have already written the entire code, now I just need to pass the argument from DOS. I...
Rancher asked 3/1, 2017 at 17:11

1

Everywhere it is explained as a thing which binds/associates registers with segments, but I want to understand what is bound exactly.
Quint asked 5/12, 2016 at 18:55

1

I've tried nearly every C compiler with every setting, and I have yet to find a C compiler that can compile C into Intel x86 code that is suitable for Real Mode kernel development. I don't ne...
Britanybritches asked 15/9, 2016 at 3:59

3

Solved

I am facing some strange results with integer division in C++. I am trying to calculate this: -2147483648 / -1. What I get is 3 different results in 3 different scenarios: int foo(int numerator, ...
Bliss asked 4/8, 2016 at 14:13

1

Solved

I want to halt the execution about 0.1 seconds, regardless of the clock speed of the CPU. The code should run directly from a boot device, it should therefore not use DOS interrupts. I'm currently...
Bulley asked 11/4, 2016 at 9:47

1

Solved

I'm using Tasm 1.4. I'm trying to change the color of the background and text without clearing the previous text, but it always ends up on clearing the previous text although the colors are changed...
Innermost asked 16/9, 2015 at 21:41

3

Solved

I have 16-bit PGM images that I am trying to read in Python. It seems (?) like PIL does not support this format? import Image im = Image.open('test.pgm') im.show() Shows roughly the image, but i...
Maltase asked 9/9, 2011 at 15:10

2

Solved

I've been banging my head against the wall in an attempt to understand why the following assembly is not correctly dumping the contents of 'HELLO_WORLD'. ; Explicitly set 16-bit [ BITS 16 ] [ ORG ...
Sarcous asked 31/5, 2015 at 18:53

1

Solved

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 conve...
Micrometeorite asked 18/4, 2015 at 4:38

© 2022 - 2024 — McMap. All rights reserved.