How to know line of a command with ASM6?

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems. See the NESdev wiki for more information.

Moderator: Moderators

Post Reply
User avatar
MartsINY
Posts: 66
Joined: Sun Jun 11, 2017 5:39 pm

How to know line of a command with ASM6?

Post by MartsINY »

I have a huge code with ASM 6. I use

.org $B045

It goes up like to $B500

I'd like a message when compiling or an easy way to know what is the address of a specific line in RAM (for example $B302)

Let's say it's my code

LDA #$00
STA $340 ;WHERE IS IT??
LDA #$01

I would like to have the address where second instruction is in RAM without searching it. Is there a way?
User avatar
tokumaru
Posts: 12427
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: How to know line of a command with ASM6?

Post by tokumaru »

When assembling, ask the assembler to create a listing file. In that file you'll see the entire program and the addresses of everything.
User avatar
MartsINY
Posts: 66
Joined: Sun Jun 11, 2017 5:39 pm

Re: How to know line of a command with ASM6?

Post by MartsINY »

thanks!! I saw this option, I had no idea what a listing was!!
Post Reply