Issue I am experimenting mixing assembly(x86) and C++. I wrote a procedure in assembly and then called it from C++. However, when writing the returned value to a local variable I get a write permission violation error. #include <iostream> //Continue reading
[SOLVED] Visual Studio debugger not working for a DLL build from assembly source files?
Issue I’m currently using masm in a C++ wrapper to develop a .dll so it can be used by other applications, notably a c# one in Visual Studio 2022 However developing this way has some big drawbacks. Visual Studio hasContinue reading
[SOLVED] Printing a triangle with incrementing digits instead of asterisks
Issue I’m experimenting with my program by trying to build different kinds of pyramids and converting the values into different values. I managed to build one with asterisk sign and now I’m trying to find a way on how toContinue reading
[SOLVED] I need help to SUM an array with 5 distinct values in assembly
Issue the problem is that after the second index value it stops, so it goes -> array + array -> gets stuck here causing to the output to be 1…3 and forever 3 🙁 this is my code by now:Continue reading
[SOLVED] (Assembly Language) I'm trying to get a string to move across the screen 5 times before stopping
Issue As the title states, I’m using assembly language to try to get a text to move left to right 5 times. I’ve pasted my code below. As of right now, what happens is it moves left to right 4Continue reading
[SOLVED] declare mutable string with varying size dynamically
Issue I made my own string declarator with macro in GNU Assembler in x64 machine. .macro declareString identifier, value .pushsection .data \identifier: .ascii "\value" "lengthof.\identifier"= . – \identifier .popsection .endm This is how to use it: .data ANOTHER_VARIABEL: .ascii "why"Continue reading
[SOLVED] Should we store long strings on stack in assembly?
Issue The general way to store strings in NASM is to use db like in msg: db ‘hello world’, 0xA. I think this stores the string in the bss section. So the string will occupy the storage for the durationContinue reading
[SOLVED] how to merge multiple arrays to one array in masm32
Issue I want to concatenate array1 array2 … to one array how is fast way: .data array1 db 0CFh, 0C2h, 0ABh, 01Bh, 0C1h, 007h, 0F7h, 06Dh, 0DAh, 0F2h, 0DCh, 03Ch….; about 2000 dup … array2 db 0BFh, 03Dh, 087h, 0F1h,Continue reading
[SOLVED] How syscall knows where to jump?
Issue How does Linux determine the address of another process to execute with a syscall? Like in this example? mov rax, 59 mov rdi, progName syscall It seems there is a bit of confusion with my question, to clarify, whatContinue reading
[SOLVED] C++ inline assembly looping through 2d array
Issue So i have a homework where i have to take 1 2d array loop through it, do some calculations and output it in a different array. But i am pretty much stuck, i can not figure out how toContinue reading