Category "x86-16"

Check for keypress without blocking if no key was pressed

I'm creating an application to view the current time and I created a loop to update the time each second. The loop looks like this UPDATE: ;The code to be re-

I don't know why the division produces a quotient and a remainder that are wrong

How to fix this one: I don't know why both the quotient and the remainder are wrong. My DOSBox Code: .model small .stack 100h .data Dividend db 0dh,0ah,

Not adding the stack bytes to the .EXE file with MASM 5.0

I'm writing two assembly files for DOS: hm2.asm: .8086 DGROUP group _DATA, STACK ; Required by MASM 3.0 and 4.0. ; MASM 4.0 doesn't support USE16 (but MASM

What does it take for pacman to function correctly?

I'm experiencing 2 problems: the "you win" screen does not show up the pacman has a trail. IDEAL p286 MODEL small STACK 100h DATASEG pacman db " _ __ _

How to move the cursor with x86 BIOS calls?

I'm doing some operating system tutorials from the book "Operating systems from 0 to 1". One of the exercises is to set the cursor to a position on the screen i

Getting MS-DOS SMARTDrive version from interrupt call 2F/AX=4A10h/BX=0000h

I'm trying to write an assembly procedure to get the SMARTDrive version on a given system. The code to detect if SMARTDrive is loaded works correctly, but I ca

Integrating x86 assembly in C++ project for old MS-DOS system information program

I'm new to C++ programming and have always wanted to write a system information program for MS-DOS. I'm currently using the latest DigiMars C++ compiler and MA

Generating 1 random number within 0-256 range in x86 8086 tasm(16 bit) [duplicate]

At this point i have been learning assembly for about 6 months. My current project is a random number generator. I need to generate 1 random n