6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Wed May 08, 2024 1:15 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: address-of operator
PostPosted: Wed May 18, 2022 1:42 am 
Offline

Joined: Sun Oct 03, 2021 2:17 am
Posts: 114
What is the ca65 equivalent of the address-of (&) operator? I have created a variable with .res on the zeropage that I would like to know the address of. I am not using the .org directive.


Top
 Profile  
Reply with quote  
 Post subject: Re: address-of operator
PostPosted: Wed May 18, 2022 2:57 am 
Offline

Joined: Sat Dec 30, 2017 3:19 pm
Posts: 116
Location: Detroit, Michigan, USA
jeffythedragonslayer wrote:
What is the ca65 equivalent of the address-of (&) operator? I have created a variable with .res on the zeropage that I would like to know the address of. I am not using the .org directive.


Using something like "lda #zploc" will do it.


Top
 Profile  
Reply with quote  
 Post subject: Re: address-of operator
PostPosted: Wed May 18, 2022 5:58 pm 
Offline

Joined: Sun Oct 03, 2021 2:17 am
Posts: 114
excellent; LDA #varname did the trick.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: