Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
0 answers
40 views

I know that load a flat binary file to GDB is not sufficient when you need the symbols to debug the programs and follow the flow of the program, because it don't have a valid format of GNU/Linux ...
2 votes
0 answers
62 views

Assume this code in x86_64 assembly: section .data msg db "Hello, world!" section .text global _start _start: ;; system call 1 is sys_write mov rax, 1 ...
1 vote
0 answers
54 views

Here is context of my work how to get IDT handler address in assembly In order to confirm that I am calculating correctly the IDT handler offset high part, I created this simple bootloader and I want ...
mx14slh's user avatar
  • 125
5 votes
0 answers
121 views

I am experiencing with OS programming I wrote a simple bootloader in assembly and I switched to protected mode. I want just to test interruption (keyboard) I did not want to do it with C but just in ...
0 votes
0 answers
64 views

I have this bootloader I made a while ago and I would like it to be in nasm: .intel_syntax noprefix .code16 .equ STACK_TOP, 0x7C00 .equ SELF_LOAD, 0x7C00 .equ ELF_HDR_LOAD, 0x7E00 .equ SECT_SIZE, ...
2 votes
1 answer
106 views

I am struggling to get printf to work for me in NASM while linking to ucrt.dll, It works 0 problems when I link to msvcrt.dll for printf, but I am trying to practice with something a little newer. I ...
-1 votes
0 answers
22 views

I am trying to imitate a simple bootloader written in nasm I want to try a gas version Here is the code with nasm: [org 0x7c00] mov ah, 0x0e mov al, [var] int 0x10 jmp $ var: db "Hello",...
5 votes
1 answer
103 views

I am having a problem with a bootloader I made. Mostly used code snippets from wiki.osdev.org, and screeck (on Github and Youtube) . The issue is: the bootloader cannot jump farther than 0xFFFFF, and ...
2 votes
1 answer
97 views

%macro mov_dd 2 push eax push ebx mov dword eax, [%1] mov ebx, [eax] mov dword [%2], ebx pop ebx pop eax %endmacro section .data text db "Enter first Number: &...
5 votes
1 answer
89 views

I'm writing a hello-world program in i386 assembly for OpenBSD 7.8. The program works if the string (buf argument of write(2)) is in .data or on the stack, but write(2) returns EFAULT (== 14) if the ...
pts's user avatar
  • 88.8k
2 votes
0 answers
86 views

I try to code the transition from protected mode to IA-32e mode. It's a task in college. The problem that I can't debug 32 bit bootloader. I can only run QEMU and tell based on its output whether this ...
0 votes
1 answer
80 views

I have code that is comparing a keyboard input which will be a number/ integer. However when I test it, it doesn't jmp if equal. I am not sure what value it is tested against. For example I have tried ...
3 votes
2 answers
130 views

I was playing around in assembly and noticed that it's possible to overwrite a string in a variable as long as the new string does not exceed the size of the original string: MESSAGE DB 'Hello World', ...
3 votes
2 answers
393 views

I am trying to port some code from linux to windows. I need to assemble a jump to an absolute address, using nasm, such that the same bytes will jump to the same address, no matter where the code is ...
pm100's user avatar
  • 50.7k
2 votes
1 answer
127 views

I'm in the process of porting NASM code to MASM, and I'm stuck on a NASM empty macro with 2 parameters and register usage with the _m suffix. example code: ;register defines %define arg0 rcx %define ...
rcgldr's user avatar
  • 29.4k

15 30 50 per page
1
2 3 4 5
...
356

AltStyle によって変換されたページ (->オリジナル) /