Visual Studio Code – Tasm help needed
Could someone give me a little help? It must be done in TASM 1.4, dividing 2 numbers like 14:2== 7. I tried for a few hours with tutorials from youtube but them all dont work. Some are for microsoft visual…
Could someone give me a little help? It must be done in TASM 1.4, dividing 2 numbers like 14:2== 7. I tried for a few hours with tutorials from youtube but them all dont work. Some are for microsoft visual…
I have a simple (probably the simplest) bootloader. Very similar to this and this. The code is shown below [org 0x7c00] mov ah, 0x0e mov al, 'h' int 0x10 jmp $ times 510-($-$$) db 0 dw 0xaa55 The code is…
I tried to implement the quicksort in x86-64 Assembler, on Linux. Since I'm not fully comfortable with it yet, I wrote the partition algorithm in C. It seems to work but something must be off, because adding a call to…
I'm assembling an x86-64 program on Ubuntu with NASM: nasm -f elf64 -g -F dwarf -o foo.o foo.asm ld -o foo foo.o Source: section .text global _start _start: mov rax, 60 ;SYS_exit mov rdi, 0 ;EXIT_SUCCESS syscall Debugging the program…
I am making an OS on Ubuntu, but setting up cross compilers is to difficult (other questions did not help). Is it possible to make an OS only in assembly to avoid C or C++ cross-compilers? PS: Is there a…
I am almost certain this question has been asked before, but I can not seem to find the right keywords to search for to get an answer. My apologies if this is a duplicate. I am better trying to understand…
Even I get an warning a function returns an address from local variable, it compiles. Isn't it then UB of compiler? The generated assembly: .text .LC0: .asciz "%in" .globl foo .type foo, @function foo: pushq %rbp # movq %rsp, %rbp…
I think I need to paste the full code although it looks long. I write a simple code for test. #include <stdio.h> int funadd(int a, int b){ int x = 0; x = a + b; return x; } int…
I recently started learning about memory management and I read about relative addresses and physical addresses, and a question appeared in my mind: When I print a variable's address, is it showing the relative (virtual) address or the physical address…