I’m trying to build an operating system using assembly and C++, The problem is that I can’t call the kernelMain function in C++. I used the extern ‘C’ function and I used call kernelMain in the assembly but keeps on giving me an error boot.asm:15: error: symbol _kernelMain’ not defined`, the kernelMain function never gets ..
Category : assembly
I’m trying to build an operating system using assembly and C++, The problem is that I can’t call the kernelMain function in C++. I used the extern ‘C’ function and I used call kernelMain in the assembly but keeps on giving me an error boot.asm:15: error: symbol _kernelMain’ not defined`, the kernelMain function never gets ..
So I am working with ESP32 which is powered by a battery, so I want it to wake up only if a sensor value is above a threshold. So basically if the ADC is above the threshold, it should wake up. I found this resource online: https://github.com/gabriel-milan/esp32_ulp_hall_wakeup Where he is using a Hall effect sensor ..
As the title states, I want to read the smallest and largest address in DS of the selected process. I know I can read the limit addresses of SS of current process with mov eax, fs:[4] but this is not I want. I want limits if DS Source: Windows..
Having a simple MessageBox program like that: NULL EQU 0 ; Constants MB_DEFBUTTON1 EQU 0 MB_DEFBUTTON2 EQU 100h IDNO EQU 7 MB_YESNO EQU 4 extern [email protected] ; Import external symbols extern [email protected] ; Windows API functions, decorated global Start ; Export symbols. The entry point section .data ; Initialized data segment MessageBoxText db "Do you ..
I am trying to write 8086 Emulator in C++. But I am facing a problem. Suppose the code is: MOV AL, BL JMP X MOV BL, CL MOV DL, CL . . . X: ADD AX, BX HLT Now the machine code for JMP X will depend on X, whether it is near location or ..
the value of sp becomes ——— when the stack is full. THIS IS MY ASSEMBLY PROGRAMING QUASTION. AND I DONT KNOW THE ANSWER FOR THIS CAN ANY ONE HELP PLEASE! Source: Windows..
int my_var; void __declspec(naked) stuff() { __asm { lea edx, [ecx + edi + 0x0000111] } } How to store the value from the address [ecx + edi + 0x0000111] in the c++ variable "my_var" above. Source: Windows Que..
I have a question related to my assembly code. I want to know how to skip a instruction in loop. for example if I have to print numbers 1 to 5 but not 3 what will be the code to skip 3? enter image description here Source: Windows Que..
Ok so ive tried to start a programming a Code Injection program for windows written in C (in Visual Studio) and ive been having trouble when getting instructions to execute cause of something to do with windows weird execution environment. So anyways ive narrowed my project down to just getting custom code to execute. Here ..
Recent Comments