6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Wed May 15, 2024 9:13 am

All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Wed May 18, 2022 6:45 pm 
Offline
User avatar

Joined: Tue Aug 11, 2020 3:45 am
Posts: 311
Location: A magnetic field
Suffixes are bad. Intel assembly allows H suffix for hexadecimal. However, is AAH hexadecimal $AA or a previously defined constant?

BillG on Fri 29 Apr 2022 wrote:
How about this one from Python?

Code:
int('0b1', 16)


Apparently, prefixes can also be bad. I believe that JavaScript and PHP have similar cases to Python.

drogon on Fri 29 Apr 2022 wrote:
(and the rest of us older folks who'd grumble about their lawns, etc. ;-)


I refer you to my first message:

Sheep64 on Tue 11 Aug 2020 wrote:
#include <rant/kids-today>
#include <rant/both-ways/snow>
#include <rant/both-ways/uphill>
#include <rant/lawn/get_off>

_________________
Modules | Processors | Boards | Boxes | Beep, Beep! I'm a sheep!


Top
 Profile  
Reply with quote  
PostPosted: Sun May 22, 2022 1:07 pm 
Offline

Joined: Thu Mar 12, 2020 10:04 pm
Posts: 690
Location: North Tejas
Sheep64 wrote:
Suffixes are bad. Intel assembly allows H suffix for hexadecimal. However, is AAH hexadecimal $AA or a previously defined constant?


The Intel standard requires that $AA be written 0AAh. All numbers must start with a digit to resolve syntactic ambiguity with identifiers.


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

All times are UTC


Who is online

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