Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
78 views

I want to create a skeleton for a project in which there are multiple cuda and cpp files. They will be compiled individually and then linked together to form a single executable. Currently I have the ...
ThErOmAnEmPiRe's user avatar
1 vote
0 answers
145 views

I am implementing my own SW for getting data from DS18B20, but I've been stuck on decoding address for a while - "receiving" only zeros as a result. Here is my code: #include <avr/io.h>...
David David9's user avatar
2 votes
1 answer
101 views

I know the stack pointer can be used to find stack allocated objects, but how does the cpu find global/static objects? From what I could tell from the disassembly, it uses absolute/immediate ...
Badasahog's user avatar
  • 1,025
1 vote
1 answer
125 views

I’m learning asynchronous programming in Python using asyncio and want to understand how low-level awaitables work, particularly for system events like serial port communication. For example, ...
Eledwin's user avatar
  • 87
2 votes
0 answers
77 views

I’m developing a custom OS and facing a chicken-and-egg problem with my page frame allocator. I need to map a specific page, but if the corresponding PML4 entry is NULL, I must allocate a PDPT. ...
Viliam Holly's user avatar
1 vote
0 answers
125 views

I am building a virtual machine in C and now I want to create an assembler to make it easier to write programs instead of using macros or manually writing the bytecode. #define ADD(dest, src1, src2) ((...
MOHAMED LAAREJ's user avatar
0 votes
0 answers
63 views

I'm using x64dbg and am writing some instructions in a region of the executable that I 'hollowed out' previously (just set to NOPs). After entering a simple xor instruction, shown below, some random ...
maticos's user avatar
  • 63
1 vote
1 answer
69 views

I am writing a world simulator for a turn-based game. The key feature is that there will be many NPCs with detailed psychology modelling, perhaps 20,000 - 30,000 of them. I want all NPCs to make their ...
Asparuh's user avatar
  • 23
-1 votes
1 answer
75 views

I am working on an embedded systems project, so i am dealing with limited memory. I have this huge array of strings in C, it is basically an array of 31 bitmaps. I have it in a separate file called ...
ahmad's user avatar
  • 71
1 vote
2 answers
111 views

I'm using MARS 4.5 like editor to coding in Assembly Mips. Today I'm learning BEQ, however I have a problem with this code: .data Message_1: .asciiz "I numeri sono uguali" Stampa: li $...
Gabriele's user avatar
-2 votes
1 answer
422 views

I am trying to code a game in x86 Assembly. I don't know how to draw to screen using x86 assembly. Based on my previous experience with assembly I assume I have to code a bootloader which jumps to a ...
Nabir14's user avatar
1 vote
1 answer
103 views

I'm experimenting with the stack in C to test some things and learn more in the language. I know that a function has a stack frame created by moving the rsp/rbp pointer. What I don't understand is ...
Architek's user avatar
  • 135
0 votes
0 answers
150 views

I'm trying to do a packer project for my school, it is made in C and ASM, and for the moment it is supposed to target only ELF files. I have managed to do my section injection, correctly align my new ...
Maxence Gama's user avatar
1 vote
2 answers
121 views

I am working on an OS using EFI using the ms_abi and was wondering how does it pass arguments because I am moving some systemtable info into a register but when I try to call a function using the ...
lucas's user avatar
  • 29
1 vote
2 answers
548 views

I’m trying to find out how to draw graphics in C/C++ without any external libraries. I know it is possible because I’m pretty sure the libraries are programmed in either C or C++ and I want to know ...
Batu Pazarbasi's user avatar
0 votes
0 answers
70 views

I'm using the Z88DK C compiler to control my Z80 CPU. While trying to link the FreeRTOS library to my project, I've run into some issues. I'm configuring the Z80 with EEPROM from 0 to FFF and RAM from ...
Nani D's user avatar
  • 1
0 votes
0 answers
38 views

I'm writing a MIPS program (simulated on qtSpim) for a class that's supposed to do the following: read two integers from user input, determine whether each one is even or odd, compare them, and then ...
welcomedandroid's user avatar
-1 votes
2 answers
1k views

I'm a student at an engineering college, and I have encountered a problem while working on a project. In this project, I am designing a microcontroller. I opted to use the Z80 CPU due to its ...
Nani D's user avatar
  • 1
1 vote
0 answers
203 views

I'm working on a challenge that requires me to overwrite a memory address with a libc address, which is usually around 48 bits. I can write a 32-bit number into an address but with anything larger ...
john's user avatar
  • 11
0 votes
0 answers
101 views

I'm currently working on parsing a SQLite file for my C program, and I need to extract three columns, url, username, and password. I want to parse it without using the sqlite3.h header file. I could ...
exomm's user avatar
  • 59
1 vote
0 answers
33 views

I'm currently exploring asynchronous programming. While I understand the basics of how this works conceptually, I'm interested in a deeper understanding of its implementation. How is asynchronous ...
average Joe's user avatar
1 vote
1 answer
99 views

The system has 4 push buttons, named A to D. The push buttons are memory mapped to address 0xffffe440. The status of the buttons are given at bit indices 7 through 4, where button A is given at index ...
Need_MathHelp's user avatar
1 vote
1 answer
240 views

I am making my own basic operating system and I obviously face some bugs, until now I have been just using the build logs but as the OS gets more complex it becomes very hard to debug. That's why I ...
user avatar
7 votes
0 answers
363 views

I'm developing a static freestanding nolibc/nostdlib program for Linux and would like to use the C compiler's memory, address and undefined behavior sanitizers to improve my code. I couldn't get it to ...
Matheus Moreira's user avatar
0 votes
0 answers
261 views

sorry if this is a nooby question or a possible duplicate, but I am reading into vector intrinsics and thinking that is there a clean way to extract the first double out 256-bit vector of 4 doubles ...
Throwaway9's user avatar

1
2 3 4 5
15