Questions tagged [sasm]

SASM (SimpleASM) — a simple Open Source crossplatform integrated development environment for NASM, MASM, GAS and FASM assembly languages with syntax highlighting and debugger.

40 questions
7
votes
1 answer

Gcc-multilib for Fedora

I'm trying to install gcc-multilib on fedora, but I cannot find out how. AFAIK it is a Debian/Ubuntu specific package. Nevertheless, it is required for SASM IDE, in order to compile and debug FASM, NASM and gas assembly.
pauk
  • 350
  • 4
  • 15
3
votes
1 answer

Show binary representation of register value in SASM

Can I set SASM to show binary representation of the value I have in the registers (eax, ebx..) during debugging along with the hexadecimal and decimal ones?
Jay_Peters
  • 101
  • 1
  • 3
  • 11
2
votes
1 answer

Why doesn't SASM's debugger show the value of a "result" variable updating after a store?

I'm trying to run a simple code in assembly - I want to save an address to memory. I'm moving the address into a register and then moving it into the memory, but for some reason the memory isn't updated. .data str1: .asciz "atm course number is…
E. Ginzburg
  • 253
  • 2
  • 9
2
votes
1 answer

Trouble getting user input with NASM

I am teaching myself NASM and I'm having some trouble getting user input. (I already know MIPS and I'm familiar with x86). At first I was trying online compilers with the example code here, but although it printed to the screen it never actually…
lilibug1
  • 31
  • 5
2
votes
2 answers

how to set up macro assembler in my simpleASM ide

im very new to assembly and i just recently downloaded sasm and I'm trying to run this code. ; AddTwo.asm - adds two 32-bit integers ; Chapter 3 example ExitProcess PROTO, dwExitCode: DWORD .386 .model flat, stdcall .stack 4096 .code main PROC mov…
Vitas
  • 149
  • 13
1
vote
0 answers

"wrong variable or address: " in sasm debugger

I am learning x86-64 assembly, using SASM IDE and I have this question. %include "io64.inc" section .data string2 db "hello",0 section .text global CMAIN CMAIN: mov rbp, rsp; for correct debugging mov rsi, string2 xor rax, rax …
Rick
  • 7,007
  • 2
  • 49
  • 79
1
vote
0 answers

How can I know the number of bytes I need for a given input?

I'm using the SASM IDE using NASM as my assembler to produce a 32-bit program. How can I know the number of bytes (first parameter) I need for a given input when using the PRINT_DEC macro? let's say I need to print 6518846, how many bytes do I need…
ae winter
  • 11
  • 2
1
vote
1 answer

Adding bytes from a DB array causes overflow. How to get the actual value?

The problem I am facing is trying to add all the bytes defined in data db 0x00,0x10,0x20,0x30,0x40,0x50,0x60,0x70,0x80,0x90. I want to average them, which means dividing the sum by 10. %include "io.inc" SECTION .text global CMAIN CMAIN: mov ebp,…
1
vote
1 answer

unable to open include file `test.inc` in sasm

I am using SASM on Ubuntu to try out some NASM assembler coding. To test my assembler code I have created a test file and saved it in the same directory as my .asm File, but when I try to debug it in SASM I am getting the following error: unable to…
bobdilan
  • 21
  • 6
1
vote
0 answers

Multiplication of two 64bit fixed point numbers in 32-bit compiler assembly nasm

I have to multiply two 64Bit fixed point numbers in x86 assembly. I get the numbers over the Stack, for the Example of 653.456 x 498.224 it would look like this: push dword 653 ;32Bit push dword 456 ;32Bit push dword 498 ;32Bit push dword 224…
1
vote
2 answers

Can't figure out what I must I push to the stack before calling `_getch` in FASM

I'm using the SASM IDE by Dmitry Manushin to write a program in FASM. My code is as follows: format ELF section '.data' writeable msg db 'Hello, world of Flat ASM!', 0Dh, 0Ah, 00h ; terminate with null string buffer rb 20 inp_buf_size…
Agi Hammerthief
  • 2,114
  • 1
  • 22
  • 38
1
vote
1 answer

SASM closing instantly (NASM Windows 10)

I'm using SASM and within it, NASM. Whenever I open run my simple NASM file, it closes in the blink of an eye. Here is my code: %include "io64.inc" section .text global CMAIN CMAIN: mov eax,4 xor rax, rax ret
Katido 622
  • 21
  • 1
  • 7
1
vote
1 answer

NASM in SASM crashing in windows

I'm trying to run some NASM code inside of SASM IDE. When I try it, Windows 10 just makes it crash. %include "io.inc" section .data msg db 'Hello, world!',10 ;string to be printed len equ $ - msg ;length of the string section .text …
Katido 622
  • 21
  • 1
  • 7
0
votes
1 answer

Why won't SASM build my hello.asm file in Arch Linux 64 using NASM assembler and gcc linker?

My system is Arch linux 64, my file is just a hello.asm The setting for SASM is as follows: Mode: x64 Assembler : NASM Assemble optionss : -g -f elf64 $SOURCE$ -l $LSTOUTPUT$ -o $PROGRAM.OBJ$ Linking options : $PROGRAM.OBJ$ $MACRO.OBJ$ -g -o…
0
votes
1 answer

Unable to use debugging in SASM

Im learning NASM and trying to debug this code: ; jump.asm extern printf section .data number1 dq 42 number2 dq 41 fmt1 db "NUMBER1 >= NUMBER2",10,0 fmt2 db "NUMBER1 < NUMBER2",10,0 section .bss section .text global main main: …
1
2 3