MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Anonymous
Unregistered
Re: Why every number before has a "$" in MAME debuger?
03/04/14 10:57 AM


> 0032: 75 90 F1 mov p1,#$F1
> 0035: 75 B0 EB mov p3,#$EB
> 0038: 78 7F mov r0,#$7F
> 003A: 76 00 mov @r0,#$00
> 003C: D8 FC djnz r0,$003A
> 003E: 75 81 68 mov sp,#$68
> 0041: D2 65 setb $2C.5
> 0043: 12 10 89 lcall $1089
> 0046: 12 11 4D lcall $114D
> 0049: 12 11 8E lcall $118E
>
> Dose "$" tell me it is HEX? Why not "#F1H" for "#$F1"?

$ means hex
# means literal, as apposed to a memory address

English is read left to write, having $ at the beginning means that you know that it's hex before you read the hex number. Having it at the end you might have to go back and re-read the number. Because hex numbers include A-F then using H will merge into the number and make it harder to read.

I imagine these perceptual queues are stronger if English is your first language.

My brain seems wired to read logic in C code as English too, for people who don't follow this (either non-English speakers or people who don't try to read their code) I find it harder because of grammatical issues like double negatives.

Edited by smf (03/04/14 10:58 AM)







Entire thread
Subject Posted by Posted on
* Why every number before has a "$" in MAME debuger? lxd 03/03/14 05:53 PM
. * Re: Why every number before has a "$" in MAME debuger? Anonymous  03/04/14 10:57 AM
. * Re: Why every number before has a "$" in MAME debuger? Vas Crabb  03/03/14 09:54 PM
. * Re: Why every number before has a "$" in MAME debuger? R. Belmont  03/04/14 06:07 PM
. * Re: Why every number before has a "$" in MAME debuger? Sune  03/03/14 06:44 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 311 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1414