Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
119 views

As you can see down at bottom on my stage 2 boot loader, I have a VGA write thing (Prints out "Starting kernel...", but when I use it, the system starts to boot loop, I have no idea why this ...
Connor Thomson's user avatar
4 votes
1 answer
111 views

im trying to make a simple bootloader that loads a simple kernel and the problem is that the kernel code doesnt run i do see prints from the bootloader but not from the kernel here is my code: boot....
someuser's user avatar
4 votes
1 answer
109 views

With the Intel 8088's segment:offset model, code and data reads will stay in the active segment unless the segment is changed. For example, take this instruction: ABCD:FFFF ADD AL,12 This ADD ...
calamari's user avatar
  • 415
4 votes
1 answer
151 views

I'm trying to write a simple hello world bios for Qemu as an academic exercise, and I've gotten Qemu to believe the display is initialized. I see a black screen upon boot, but writing to character ...
Matthias Birkemeier's user avatar
0 votes
0 answers
30 views

I'm trying to start building an operating system from scratch but I don't know why I'm getting this warning on this code: [BITS 16] [ORG 0x7c00] start: mov ax, 0 mov ds, ax mov es, ax ...
AutisticCoder's user avatar
4 votes
1 answer
191 views

So I thought I'd try to make a DOS copy but it runs on a floppy and its just a simple plug and play with fat12 partition for user applications and drivers. I first attempted to load my kernel using ...
laween's user avatar
  • 91
2 votes
2 answers
150 views

Well, I'm writing my own OS just for fun, and I thought it would have been cool to add a bytecode "language" interpreted by the kernel itself. I took inspiration mainly from Java, which is ...
varevind's user avatar
4 votes
2 answers
191 views

I threw together a makeshift MBR for a chainloader project I have been working on for sometime now. I tested on QEMU and BOCHS and no issues, besides throwing earlier 386 BIOS images into the mix (...
EchoXTeknology's user avatar
1 vote
1 answer
115 views

I'm writing a bootloader in x86 Assembly for my operating system. Note that I have already wrote a few bootloaders and I never faced this problem. This is the code that I compile with NASM (precisely ...
varevind's user avatar
3 votes
2 answers
112 views

I am modifying the source code of a driver for an ISA card that uses IRQ2. The case, as we all know, IBM added a second PIC and chained it using IRQ2, and the IRQ2 present in the ISA bus was replaced ...
Borg Drone's user avatar
7 votes
1 answer
199 views

I'm trying to replace the int 21h vector with a custom routine in MS-DOS. This method works for the timer tick interrupt (1Ch), but for some reason hangs after around 20 calls to 21h. My code is ...
Benjamin Penney's user avatar
2 votes
1 answer
104 views

I'm working on a retro programming project and running into trouble with my bootloader setup. I'm using: Turbo Assembler 4.01 for the first-stage bootloader (x86 Assembly) Turbo C 2.0 for the second-...
Amir Khan's user avatar
2 votes
0 answers
114 views

I'm developing a PS/2 mouse driver in 16-bit assembly (NASM) for a custom operating system running in VGA mode 0x12 (640x480, 16 colors). The driver initializes the mouse, handles mouse events, and ...
PRoX's user avatar
  • 23
-5 votes
2 answers
94 views

For some reason every time I try entering 32bit protected mode.. it always FLICKERS AND FLICKERS FOR NO REASON.. I am using QEMU and my kernel is being assembled into a raw binary and then written ...
user avatar
0 votes
1 answer
81 views

Exercise: Displays even numbers Example: 00, 02, 04, …., 98 This is based on an assembly 8086. The program uses seven display segment (port 02) to display even numbers where MSB is Most Significant ...
Liheng Ouk's user avatar
3 votes
1 answer
88 views

Problem I have assembly code that switches to 32bit mode and prints a character successfully when I have it inside the boot sector - But when I use a disk read to load the code to the next sector the ...
Adi Mehmedičević's user avatar
2 votes
1 answer
57 views

It's my first time writing x86-16 assembly. I'm writing a bootloader game, but I'm struggling with iterating through level data. I'm attempting to iterate through a 2d array - each byte of this array ...
Nishiiya's user avatar
3 votes
2 answers
99 views

I am implementing a fractional number calculator (numerators and denominators must be entered separately) for an assembly language course. I had already finished the logic of my program, but I ...
Serujio74's user avatar
1 vote
1 answer
58 views

I'm trying to write a .COM program in NASM assembler for DOS to compare the odd-indexed elements of the first array with the even-indexed elements of the second array. But it prints that the elements ...
Muhab Joumaa's user avatar
0 votes
1 answer
101 views

I'm trying to make a simple dice game using assembly language (MASM). The program generates two random numbers (1~6) and compares them. If the player's number is higher, it prints "You Win!",...
LEE's user avatar
  • 11
0 votes
1 answer
123 views

I need to write a program in Assembly for DOSBOX using MASM. Task: Write a resident (TSR) program for DOS that changes the keyboard repeat rate every second in a cyclic manner, from the slowest to the ...
Youvii's user avatar
  • 9
1 vote
1 answer
38 views

I am just following the book from my university to run this simple code I found as an example for my coding practice. I am new to assembly language. The problem is that I only know how to assemble in ...
Haranator's user avatar
1 vote
1 answer
82 views

I have a basic bootloader that reads my kernel at 0x0500. The kernel do some setup then reads and calls a binary. Executable Binary: BITS 16 ORG 0x0000 START_ADDR dw init ;The address to be called ...
ja0's user avatar
  • 95
1 vote
3 answers
122 views

I am doing some basic tests in fasm I try to emulate a jump instruction in the reset location of 16 bit 8086 real mode: $ cat bios.asm ; BIOS ROM START (64 KB ROM) org 0xF0000 start: mov ah, 0x0E ...
M.E.'s user avatar
  • 5,693
-1 votes
2 answers
105 views

I have a project I am doing in assembly. I am making a kahoot style quiz game in x86 assembly, running it in DOSBox. I made the entire thing with no graphics but I need to make it with graphics so I ...
yali sommer's user avatar
2 votes
1 answer
90 views

I am writing a simple bootloader (and, hopefully soon, an operating system). I have been making progress, but this part is stumping me a bit. I am writing this operating system and bootloader into a ...
Ryan Grube's user avatar
0 votes
0 answers
76 views

[ORG 0x7C00] [BITS 16] CODE_OFFSET equ 0x8 DATA_OFFSET equ 0x10 KERNEL_POS equ 0x1000 ; 4096 bits dec, 512 bytes ; loader - 512 size bytes, ; then kernel will placed to ...
Daniil's user avatar
  • 17
2 votes
1 answer
135 views

I've been trying to build a custom OS following the steps in this guide. However, I continue to get the following error from my Makefile, init :: non DOS media Cannot initialize '::' ::kernel.bin: ...
Joshua Alexander's user avatar
0 votes
0 answers
29 views

image link: https://drive.google.com/file/d/1P695nlkTDUlbEpG1NfEgJjKCTTs34SKd/view?usp=sharing 1.) I have this code that has a name at the center when you run it, how can I make this name(or string) ...
Renzm.6958's user avatar
1 vote
1 answer
96 views

I am trying to write a sample “Hello World” in real mode that will run in QEMU. The host is a 64 bits intel running FreeBSD 14. I have tried the following: This is boot.asm file: format binary org ...
M.E.'s user avatar
  • 5,693
0 votes
1 answer
59 views

I need help with assembler(TASM), and I need to change one problem. When filling a buffer of 200 elements, I need to make a transition to entering a word for deletion, but it does not work, help ....
Snow Max's user avatar
2 votes
1 answer
73 views

I'm trying to print out current year (CX), month (DH), day (DL) and day of the week (AL) from system timer. Year stored in CX is printed out correctly. I tried to printout DH, DL and AL with ...
Coder4Fun250's user avatar
0 votes
0 answers
24 views

I am solving this question: Push the first 10 even numbers onto a stack. Then, pop each number, check if it is divisible by 4, and if so, push it into a new stack. Finally, display the contents of the ...
Iqra Fatima 's user avatar
2 votes
1 answer
135 views

I noticed that, whenever I started my AFD (Avance Fullscreen Debugger), even before the execution of the first command, the CX register has already some value. What can be the reason for this? As you ...
Safi's user avatar
  • 31
1 vote
0 answers
44 views

If I do: .model tiny .code _start: mov [var1], ax .data? ALIGN 4 var1 dw ? var2 dw ? buf db 4096 dup(?) end I get Warning A4130: Incompatible with segment alignment: 4 If ...
Joshua's user avatar
  • 43.6k
0 votes
2 answers
116 views

I am using a typical x86-16 assembly random number generator, using the BIOS timer and the current milliseconds. random_number: mov ah, 00h ; interrupts to get system time int 1Ah ; CX:DX now ...
SGD's user avatar
  • 55
2 votes
1 answer
172 views

Problem I'm using NASM as a reference assembler for an 8086 disassembler project I'm working on. To increase test coverage I'm looking for an assembly instruction and/or command line flag that will ...
Clamps's user avatar
  • 21
1 vote
0 answers
60 views

I am trying to write a custom bootloader, when I call int 13h, I keep encountering the error 0x0e - Control Data Address Mark Detected on the drive that I attempt to read to. I don't really get any ...
kwphil 's user avatar
1 vote
1 answer
74 views

ORG 100h ; Start address for EMU8086 ; Define Ports PORT_B EQU 12h ; LEDs (Green, Yellow, Red) BUZZER_PORT EQU 18h ; Buzzer Control Port ; Define LED States GREEN_LED EQU 01h ; Bit 0 ...
NUR AQILAH BINTI ISHAR's user avatar
0 votes
0 answers
53 views

I had a test from assembly in my college, and one of the tasks was to say "what values do appear on address lines at cycle 2 and 3, for instruction: pop %BX". The problem is, from what I ...
Jan Intelkor's user avatar
1 vote
1 answer
81 views

I'm following a github tutorial (https://github.com/gmarino2048/64bit-os-tutorial/) and came across these lines of code in load.asm in chapter 1.3, part of the bootloader that loads the actual kernel: ...
TC-2ND-ACC's user avatar
2 votes
0 answers
66 views

; VERIFY THAT TIMER 1 FUNCTIONS OK MOV AL,54H ;SEL TIMER 1,LSB,MODE 2 OUT TIMER+3,AL SUB CX,CX ; MOV BL,CL MOV AL,CL ;SET INITIAL TIMER ...
sheldon5's user avatar
1 vote
2 answers
111 views

I'm learning how to do assembly, and I can't find any examples on how to add different colors to different lines of messages (e.g. msg1 = green background, msg2 = red background). Adding something ...
Dirk's user avatar
  • 21
0 votes
1 answer
86 views

I'm a CS student and I need to build a project for my architecture class. I have tried to build a simple drag and drop program in asm. The whole idea would be to draw a square somewhere on the screen ...
negoro26's user avatar
0 votes
2 answers
113 views

As i understand. Program must clean background, display message1 ( dark letters on white background + highlighting by flickering). then go up for 2 strings and display message2(also dark letters on ...
sedvivus's user avatar
0 votes
0 answers
39 views

I'm learning 8086 assembly through college course and i ran into a problem. I'm trying to calculate Fibonacci sequence to 46 places but 16-bits registers inside this processors can't handle large ...
Crisiroid's user avatar
1 vote
1 answer
108 views

The classical explanation of Intel opcodes using octal says this: As an example to see how this works, the mov instructions in octal are: 210 xrm mov Eb, Rb 211 xrm mov Ew, Rw ...
honestSalami's user avatar
1 vote
1 answer
177 views

mov al, [10] ; a0 0a 00 mov ah, [10] ; 8a 26 0a 00 After assembling the above 8086 assembly code using NASM, I noticed a length disparity in the resulting machine code (shown in the comments above ...
SmolScorbunny's user avatar
1 vote
1 answer
52 views

INCLUDE Irvine32.inc .model small .stack 100h .data name db 'YourName', 0Dh, 0Ah, '$' count db 5 .code main proc mov ax, @data mov ds, ax mov cx,5 count ; Set loop counter to 5 ...
Lily DuBois's user avatar
1 vote
1 answer
94 views

I have a function vmem, which is for drawing at (CX,DX). The function vmemr is for reading (CX,DX) to see if the pixel is painted. And vmemr will return AL=1 if there is color on (CX,DX). Now I want ...
user27789527's user avatar

1
2 3 4 5
62