16-bit Questions
3
Solved
I am following a guide on Gameboy emulation and, in a snippet of code I saw the following:
while(true)
{
var op = MMU.rb(Z80._r.pc++); // Fetch instruction
Z80._map[op](); // Dispatch
Z80._...
Glittery asked 1/3, 2015 at 11:17
2
Solved
1
I was reading a tutorial about creating a Game Boy emulator, I understand that the Game Boy uses an 8-bit CPU, but I can't understand why the Gameboy uses two types of data: bytes (8 bits) and word...
8
Solved
I am working on a project with a TFT touch screen. With this screen there is an included library. But after some reading, I still don't get something. In the library there are some defines regardin...
Wsan asked 5/12, 2012 at 10:21
1
Solved
I'm trying to clear the screen in my simple 16-bit real mode operating system. Below is the code:
clearScreen:
pusha
mov ah, 0x7
mov al, 0
int 0x10
popa
ret
I read that setting al to 0 a...
Incompletion asked 9/4, 2014 at 20:8
1
Solved
I'm getting PCM audio samples in Float32Arrays. But my application can only support data with a 16 bit length so I need to convert.
I'm not sure how to do this since there is no typed array for a ...
Conservatory asked 4/1, 2014 at 19:15
2
Solved
I was reading up on perlvar when i came across this -
The status returned by the last pipe close, backtick (`` ) command, successful call to wait() or waitpid(), or from the system() operator. ...
3
Solved
This question may be redundant, but I didn't found exact answer.
What is the Difference between C 8 bit 16-bit 32-bit compilers.
how the .exe differ generated by different compilers for sam...
Mealy asked 5/4, 2013 at 6:39
3
The error NASM gives (despite my working OS) is "invalid effective address".
Now I've seen many examples of how to use LEA and I think I got it right but yet my NASM dislikes it. I tried lea cx, [...
2
Solved
I am trying to learn how to create Dos .EXE files using assembly (NASM), constructing the header by hand and assembling the file as binary. I have a problem with the page options (both the total nu...
7
Solved
What do 16-bit, 32-bit and 64-bit architectures mean in case of Microprocessors and/or Operating Systems?
In case of Microprocessors, does it mean maximum size of General Purpose Registers or size...
Florist asked 29/8, 2010 at 10:40
4
Solved
I need to declare an integer in the size of 16 bit, in C.
I know that short and int sizes are machine dependent.
I tried to use "stdint.h", but it seems that they simply do
typedef short int16_...
2
Solved
I have been trying to design a simple OS, just the boot sector, and 16-bit real mode with interrupts. I have finally been able to make the OS / bootloader, that I tested in virtual box, and it work...
Ganef asked 12/3, 2012 at 0:22
1
I must reverse a legacy windows (16-bit, NE exec) application that controls an old DAQ that I must interface somehow with upgraded hardware. I've been able to disassemble the exec using W32Dasm (an...
Stereometry asked 30/1, 2012 at 23:6
1
Solved
Im trying to write a program which get two 6-digit decimal numbers and show the addition of them, but in 16 bit 8086
i defined numbers as double word and put LO in WORD 1 and HO in word 2. similar ...
Crabtree asked 2/12, 2011 at 6:47
3
Solved
What set of instructions is used in COM files? I assumed it was 8086, but it seems that I was wrong. In a 8086 manual I found, shl can only accept 1 or cl for its second argument, while immediate v...
5
Solved
What is an efficient and clear way to read 16-bit PGM images in Python with numpy?
I cannot use PIL to load 16-bit PGM images due to a PIL bug. I can read in the header with the following code:
d...
2
Solved
Before, when I was using win32, I used FreeImage in order to load and save bitmaps of bit depth greater than 8 bits. That's every image I work with, since I'm doing medical imaging, and before anyo...
Odessaodetta asked 19/2, 2010 at 6:51
1
Solved
1
Solved
I am working on a system where hash collisions would be a problem. Essentially there is a system that references items in a hash-table+tree structure. However the system in question first compiles ...
6
Solved
1
Solved
I need to perform a bitwise left shift on a 16-bit integer (ushort / UInt16), but the bitwise operators in C# seem to apply to int (32-bit) only. How can I use << on an ushort, or at least ge...
Protomorphic asked 29/9, 2010 at 7:32
2
I'm studying ASM 8086 theoretically on highschool.
And when I do this:
MOV BX,[SI]
is SI+1 going to BH or BL?
Thank you :-)
3
I'm having an issue using bilinear interpolation for 16 bit data. I have two images, origImage and displayImage. I want to use AffineTransformOp to filter origImage through an AffineTransform into ...
Quadragesimal asked 11/3, 2010 at 19:43
3
Solved
How can I check if two System.Drawing.Color structures represent the same color in 16 bit color depth (or generally based on the value of Screen.PrimaryScreen.BitsPerPixel)?
Let's say I set Form.T...
Scalene asked 2/2, 2010 at 14:18
© 2022 - 2024 — McMap. All rights reserved.