Dman95 / SASM

SASM - simple crossplatform IDE for NASM, MASM, GAS and FASM assembly languages

Home Page:http://dman95.github.io/SASM/

Repository from Github https://github.comDman95/SASMRepository from Github https://github.comDman95/SASM

Wrong variable or address

prometheusAmb opened this issue · comments

If I type in variable name during debug I get the above message "Wrong variable or address", although the variable has been defined and it exists. Therefore I cannot see the value of the variable.

Probably you should select the correct values in the drop-down lists according to the variable type or add the variable via the context menu.

Thanks for your response. I have tried both methods but they are not working

Ok, if the issue still be actual, please provide the version of SASM, OS, Settings->Build tab screenshot, the source code and the variable you want to watch.

Hello. Here are the details you asked for:

SASM version:

SASM (SimpleASM) 3.14.0 - simple Open Source IDE for NASM, MASM, GAS and FASM assembler languages.
Licensed under the GNU GPL v3.0
Based on the Qt.
Copyright (c) 2013 Dmitriy Manushin
Development and idea - Dmitriy Manushin
Icon and advices - Alick Gaybullaev

Simple program to reproduce the issue:

section .data
msg db 'Pramathesh Ambasta'
len equ $-msg
section .bss
buf: resb len

section .text
global _start
_start:
    mov esi,msg
    mov edi,buf
    mov ecx,len
    rep movsb    

mov ecx,buf
mov edx,len
mov eax,4
mov ebx,1
int 80h

Attached:

  1. SASM build settings
    Image
    2 Screenshot showing "Wrong variable or address" when variable is entered manually in the watch list

Image

  1. Screenshot showing "Wrong variable or address" when variable is entered by right click

Image

Try use such options "$PROGRAM.OBJ$ -g -o $PROGRAM$ -m elf_i386" to fix the problem.

Hello. Thanks for your response. I tried above but didn't work. Same error still