Main Menu
Main Page
Forums
New pages
Recent changes
Random page
Help

Glitches
Arbitrary code execution
Pokémon cloning
Pomeg glitch and Glitzer Popping
Tweaking and voiding
Glitches by generation
Other glitch categories

References/Resources
Databases
Disassembly projects
The Big HEX List
Interactive tools
Reference documents
Terminology

Affiliates
Legendary Star Blob 2 (Hakuda) (日本語/Japanese)
Pokémon Speedruns wiki (English)
PRAMA Initiative (Français/French)
MissingNo. Glitch City (Italiano/Italian)
Become an affiliate!

Technical
Site source code

Search Wiki

 

Search Forums

 

Poll

What's it going to be then, eh?

0x
2 (22.2%)
$
1 (11.1%)
0x for addresses, $ for values
1 (11.1%)
$ for addresses, 0x for values
3 (33.3%)
It doesn't matter
1 (11.1%)
Something else
1 (11.1%)

Total Members Voted: 9

Author Topic: 0x vs. $  (Read 742 times)

0 Members and 1 Guest are viewing this topic.

Sherkel

  • Banned
  • *
  • Offline Offline
  • Gender: Male
  • PSYNCIN' IN THE FINNAGaiN
    • View Profile
0x vs. $
« on: January 20, 2019, 09:58:35 pm »
The wiki currently doesn't have a consistent way of denoting hexadecimal values. Some pages use 0x, some use $, and some both! I'm not sure what the best solution to this is, or if there necessarily needs to be one.

What do you all think about the symbols? Do we keep tempting our lurkers over at the stock exchange, or opt for its more bovine counterpart? Could one be used specifically for denoting an address, and the other a value?
Held aloft, as if by hands, their thoughts remain adrift
Torn asunder, broken bands
A void, a dream, a rift

Epsilon

  • Member+
  • *
  • Offline Offline
    • View Profile
Re: 0x vs. $
« Reply #1 on: January 20, 2019, 10:06:27 pm »
If the reader does not know the meaning of one, they most likely will not know the meaning of the other. The contrary applies - if one knows and comprehends the meaning of one, the other should be under their belt as well.

I'm under the impression that if clarification is needed, it can be provided in brief. They both denote the same thing, so i'm sure it won't be an issue. Consistency between one or the other may even cause minor problems, as there as there as some familiar with 0x and others familiar with $.


That's my 0.02¢.
« Last Edit: January 20, 2019, 10:06:52 pm by Epsilon »
grouchy

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: 0x vs. $
« Reply #2 on: January 21, 2019, 12:20:43 am »
I've voted $ for addresses and 0x for values, loosely following the 6502 spec (where $2A is address 422, and #$2A is value 42)
I believe it's important to differentiate both of those.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

Parzival

  • The Laziest Malware Enthusiast
  • Banned
  • *
  • Offline Offline
  • Gender: Male
  • who posted nudes in upstream
    • View Profile
    • (null)
Re: 0x vs. $
« Reply #3 on: January 21, 2019, 01:52:09 am »
no one has said s**t about the "h" suffix

i'm also on keybase and bitchute but i don't have nifty buttons for those. Bitchute isn't ready yet, but will be eventually.

mood

Sherkel

  • Banned
  • *
  • Offline Offline
  • Gender: Male
  • PSYNCIN' IN THE FINNAGaiN
    • View Profile
Re: 0x vs. $
« Reply #4 on: January 21, 2019, 01:55:28 am »
no one has said s**t about the "h" suffix
Don't believe it's ever been used on the wiki, but I added the "Something else" option for things like that, as unlikely as it is we'd consider making it the standard.

Good input so far, guys! I think I'll need to hear more before forming an opinion on this myself.
Held aloft, as if by hands, their thoughts remain adrift
Torn asunder, broken bands
A void, a dream, a rift

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: 0x vs. $
« Reply #5 on: January 21, 2019, 03:19:17 am »
The "h" prefix is barely used, and just plain stupid. I'm against it.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

Sherkel

  • Banned
  • *
  • Offline Offline
  • Gender: Male
  • PSYNCIN' IN THE FINNAGaiN
    • View Profile
Re: 0x vs. $
« Reply #6 on: January 21, 2019, 11:24:03 am »
To whoever voted 0x for everything, any particular reason?
Held aloft, as if by hands, their thoughts remain adrift
Torn asunder, broken bands
A void, a dream, a rift

Parzival

  • The Laziest Malware Enthusiast
  • Banned
  • *
  • Offline Offline
  • Gender: Male
  • who posted nudes in upstream
    • View Profile
    • (null)
Re: 0x vs. $
« Reply #7 on: January 22, 2019, 02:50:00 pm »
The "h" prefix is barely used, and just plain stupid. I'm against it.
B2A7B4B37FB4AF7F9DE39Dh

see, look. It looks good, better than 0x or $, anyway

i'm also on keybase and bitchute but i don't have nifty buttons for those. Bitchute isn't ready yet, but will be eventually.

mood

Zowayix

  • Loose cannon mod who lives on the edge and doesn't play by the rules
  • Staff
  • *****
  • Offline Offline
  • Gender: Female
  • Queen of Inactivity and Loitering
    • View Profile
    • Github and whatnot
Re: 0x vs. $
« Reply #8 on: January 22, 2019, 06:13:09 pm »
Has there ever been a programming language that's used $ for hexadecimal? Where did $ even start?

Of course I can tell $ is hexadecimal if it's in context but I don't see a reason to use a symbol that means other things (e.g. currency, Perl/shell/PHP variables) when 0x doesn't mean anything else as a prefix.

I don't see the point in differentiating addresses and values because you need context anyway.


I need a new siggy, because this siggy is shitty... shittiggy... shiggy.... something. Does that Steam badge even work anymore?

Parzival

  • The Laziest Malware Enthusiast
  • Banned
  • *
  • Offline Offline
  • Gender: Male
  • who posted nudes in upstream
    • View Profile
    • (null)
Re: 0x vs. $
« Reply #9 on: January 22, 2019, 10:55:50 pm »
I don't see the point in differentiating addresses and values because you need context anyway.
Fast identification.
Has there ever been a programming language that's used $ for hexadecimal? Where did $ even start?
Assembly.
Of course I can tell $ is hexadecimal if it's in context but I don't see a reason to use a symbol that means other things (e.g. currency, Perl/shell/PHP variables) when 0x doesn't mean anything else as a prefix.
If context matters, this is a moot point.

i'm also on keybase and bitchute but i don't have nifty buttons for those. Bitchute isn't ready yet, but will be eventually.

mood

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: 0x vs. $
« Reply #10 on: January 23, 2019, 05:18:55 am »
B2A7B4B37FB4AF7F9DE39Dh
The letter is even less distinguishable here. Especially if you went with lowercase letters.

b2a7b4b37fb4af7f9de39dh
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

Zowayix

  • Loose cannon mod who lives on the edge and doesn't play by the rules
  • Staff
  • *****
  • Offline Offline
  • Gender: Female
  • Queen of Inactivity and Loitering
    • View Profile
    • Github and whatnot
Re: 0x vs. $
« Reply #11 on: January 23, 2019, 08:04:31 am »
Yeah, the thing is there is that the h visually blends in with the hex letters. 0 and x have naturally distinct shapes so they'll stand out.

Also I just realised now this is Wiki Discussion and not Debate Wars w h o o p s


I need a new siggy, because this siggy is shitty... shittiggy... shiggy.... something. Does that Steam badge even work anymore?

Parzival

  • The Laziest Malware Enthusiast
  • Banned
  • *
  • Offline Offline
  • Gender: Male
  • who posted nudes in upstream
    • View Profile
    • (null)
Re: 0x vs. $
« Reply #12 on: January 23, 2019, 08:29:22 am »
0 and x have naturally distinct shapes
0 is a valid hex character.

i'm also on keybase and bitchute but i don't have nifty buttons for those. Bitchute isn't ready yet, but will be eventually.

mood

Zowayix

  • Loose cannon mod who lives on the edge and doesn't play by the rules
  • Staff
  • *****
  • Offline Offline
  • Gender: Female
  • Queen of Inactivity and Loitering
    • View Profile
    • Github and whatnot
Re: 0x vs. $
« Reply #13 on: January 23, 2019, 09:05:58 am »
I'm tired and a bit cooked, yeah. Well, the x part holds true.


I need a new siggy, because this siggy is shitty... shittiggy... shiggy.... something. Does that Steam badge even work anymore?

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: 0x vs. $
« Reply #14 on: January 23, 2019, 10:39:23 am »
And besides, prefixing gives metadata before the number, which facilitates comprehension (you can gather it immediately from CAFEh, but not from 1337h)
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)