Help me understand this code...

DarthAT

Member
Good afternoon NesMakers,

I have a few questions about some code. I am currently studying a dissembled Legend of Zelda. There is a part of the code that states:
Variable
RoomAllDead := $34D

First what does the := represent
Second what does the $34D mean? Is this Hex, Binary, or Dec?

Thanks in advance your impute.
 

kevin81

Well-known member
It looks like this is a disassembly written for ca65/cc65. The := is a label assignment operator, which functions like the regular = operator, but it causes the symbol to be marked as a label, so debuggers know to treat it as such. $34D is a hexadecimal value (where the leading zero is omitted), probably referencing an address in RAM. So my guess is that the RAM address $034D is being used to indicate if all enemies in a dungeon room have been killed or not. [Edit: ROOM, not Rome lol]
 
Last edited:
Top Bottom