6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Mon May 13, 2024 2:38 am

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Wed Dec 12, 2018 9:34 pm 
Offline

Joined: Fri May 05, 2017 9:27 pm
Posts: 858
GARTHWILSON wrote:
Since there's already a S>D word that extends a single to a double, you could shorten the name above to something like B>N.

Since words that operate on a byte in Forth tend to start with a 'C' such as C@ C! and C, what about naming it C>S ?


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 31, 2018 3:49 pm 
Offline
User avatar

Joined: Tue Aug 14, 2012 12:47 pm
Posts: 18
Location: Austria - Vienna
JimBoyd wrote:
GARTHWILSON wrote:
Since there's already a S>D word that extends a single to a double, you could shorten the name above to something like B>N.

Since words that operate on a byte in Forth tend to start with a 'C' such as C@ C! and C, what about naming it C>S ?

AFAIK the C prefix words seems to be more for memory access words than stack manipulating words. B>N looks good to me, possibly B>S fits slightly better with S>D ...


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 03, 2019 11:19 pm 
Offline

Joined: Fri May 05, 2017 9:27 pm
Posts: 858
JeeK wrote:
AFAIK the C prefix words seems to be more for memory access words than stack manipulating words.

Not according to the naming conventions in the book Thinking Forth by Leo Brodie. Here is a short excerpt.
Code:
Meaning          Form    Example
         .
         .
Numeric Types
byte length      Cname   C@


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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: