nesdev.com
http://forums.nesdev.com/

How to know line of a command with ASM6?
http://forums.nesdev.com/viewtopic.php?f=2&t=16141
Page 1 of 1

Author:  MartsINY [ Sat Jun 24, 2017 7:21 pm ]
Post subject:  How to know line of a command with ASM6?

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?

Author:  tokumaru [ Sat Jun 24, 2017 7:25 pm ]
Post subject:  Re: How to know line of a command with ASM6?

When assembling, ask the assembler to create a listing file. In that file you'll see the entire program and the addresses of everything.

Author:  MartsINY [ Sat Jun 24, 2017 7:26 pm ]
Post subject:  Re: How to know line of a command with ASM6?

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

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/