Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[Solved] LDZ in KickC/KickAssembler help?

A topic by grimmrobegames created Oct 16, 2021 Views: 141 Replies: 2
Viewing posts 1 to 2
(2 edits)

Hi everyone (but probably mostly Shallan),

I'm looking at the amazing examples Shallan shared on their Github and learning a lot!

I am confused about one particular thing in the Nybble Mode example and I was hoping for some illumination. On lines 189, 206, and 211 there's instructions followed by variables but then a colon (:) and an additional hex value. For example, on 189:

ldz rowsToDraw:#$02

At first I thought it was maybe a pseudocommand for ldz from the version of KickAssembler that's needed for the MEGA65 support, but then it's also used with ora and lda which are standard 6502 instructions.

Thoughts?

-Mike

Host (1 edit)

This is an inline label. Allowing to reference the value of an instruction directly rather than having it before the instruction and using label+1

Ahh, brilliant! Thanks for the reply, Shallan! I'm familiar with 6502 from working on NES where the code is in unwritable ROM so self modifying code still catches me off guard  :)