nasm
Segmentation fault while trying to write for loop in NASM on Linux
I\'m trying to write a simple NASM program for fun, but I can\'t seem to figure out how to write a for loop in it. With the following code, I get a segmentation fault. The following code is supposed t[详细]
2023-02-18 06:22 分类:问答Segmentation-fault error happening with Assembly code program
I keep getting a segmentation fault error when running my code. Everything has compiled well, but I can\'t seem to get it to do what I want.The program is to ask the user to enter 3 integers, then ask[详细]
2023-02-18 01:58 分类:问答nasm sum of real number array, assembly
this is an extension to my previous post, here is the updated code, so far it will ouput the last number I inputed into the array, so it\'s not actually summing values yet[详细]
2023-02-17 18:34 分类:问答most effective way to invert an array in nasm assembly?
working on inverting my array, i have code already taht will print it out, i was thinking of creating a second array, storing it into it, then printing that one out, but is there an easier way?[详细]
2023-02-17 15:01 分类:问答assembly nasm input float values into array
working on inputing floating point values into an array, then adding them up and getting a sum so far i have this code for it, but my flag that checks to see if an input is 0 to exit the loop for ent[详细]
2023-02-16 16:32 分类:问答Linux NASM: What is the value in ebx when you invoke sys_exit?
In a Linux environment, if I write some NASM code as follows: mov eax, 1 ; system call 1 - sys_exit mov ebx, 0[详细]
2023-02-16 09:06 分类:问答NASM interrupt x86 reference?
I can\'t seem to find a good reference for NASM x86 interrupts on a Linux system. For example, what is int 0x60 and how is it different from int 0x80?[详细]
2023-02-16 08:11 分类:问答boot loader disk buffer
Recently I found some simple source code of a bootloader.The following is the simple one stage boot loader[详细]
2023-02-12 10:42 分类:问答strlen in assembly
I made my own implementation of strlen in assembly, but it doesn\'t return the correct value. It returns the string length + 4. Consequently. I don\'t see why.. and I hope any of you do...[详细]
2023-02-12 02:25 分类:问答Do I have to initialize the CPU registers in assembly code that is called from C?
I\'m reading Paul Carter\'s pcasm book. It uses NASM, a C driver app that calls my assembly code, and a companion library that makes it easy to do basic I/O in assembly.[详细]
2023-02-10 22:18 分类:问答