6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 10, 2024 11:59 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: .res
PostPosted: Thu Jan 31, 2019 8:08 pm 
Offline

Joined: Fri Nov 16, 2018 2:41 pm
Posts: 8
Hello. Some programs written in 6502 Assembly have this reserved word ".res" which is followed by a value usually of "1,$00". What does this mean?


Top
 Profile  
Reply with quote  
 Post subject: Re: .res
PostPosted: Thu Jan 31, 2019 8:51 pm 
Offline

Joined: Sat Jun 04, 2016 10:22 pm
Posts: 483
Location: Australia
Depends on which variant you're talking about. It makes it a lot easier if you tell us which tool you're talking about, because there is no standard for assembler directives.
That looks to me like the ca65 directive for reserving an area of memory(in this case 1 byte), using a fill value of $00. But since I don't know what tool that source is intended for, I can't be certain.


Top
 Profile  
Reply with quote  
 Post subject: Re: .res
PostPosted: Thu Jan 31, 2019 9:18 pm 
Offline
User avatar

Joined: Wed Feb 14, 2018 2:33 pm
Posts: 1485
Location: Scotland
Tompis1995 wrote:
Hello. Some programs written in 6502 Assembly have this reserved word ".res" which is followed by a value usually of "1,$00". What does this mean?


If it's ca65, then: https://cc65.github.io/doc/ca65.html#ss11.93

Cheers,

-Gordon

_________________
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/


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 0 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: