6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Sep 26, 2024 11:19 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu May 28, 2020 6:15 pm 
Offline

Joined: Tue Dec 03, 2019 11:39 am
Posts: 9
I was trying to find an alias for "dword" and from my Pascal experience the word "cardinal" comes to mind. The meaning of "dword" is very straight forward, double word or 4-bytes. Cardinal is a mathematical term but why was it chosen to represent a dword or 32-bit number?


Top
 Profile  
Reply with quote  
PostPosted: Thu May 28, 2020 6:53 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
Cardinals in Pascal are unsigned.
In the C world 'long' is at least 32-bits.

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Last edited by BitWise on Thu May 28, 2020 7:20 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Thu May 28, 2020 7:14 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10938
Location: England
Indeed, cardinals are for counting, mathematically speaking, and unsigned numbers are also good for counting.


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