Author Topic: Getting started programming?  (Read 4112 times)

elmer

  • Hero Member
  • *****
  • Posts: 2148
Re: Getting started programming?
« Reply #60 on: February 22, 2017, 04:07:39 AM »
Ah so Bonknut's improvements are already in these HuC forks. Good, I'll just grab the assembler. Thanks!

Edit: OK I'm using this one.

Yep, that's the latest build, with the bank-crossing fix.


Quote from: bonknuts
http://pcedev.wordpress.com/2012/02/06/new-tg16pce-assembler/

Though what I would like to add in the future is <# and >#for shorthand #low() and #high() directives, which have nothing to do with ZP addressing.

I don't remember if I documented it anywhere, but the version of PCEAS in the new HuC already contains a change so that "<" and ">" are unary-operators and synonyms for low() and high().

i.e.

lda #<label
lda #>label


Gives you the low byte and high byte of the label, just like in almost-every-other 6502 assembler that I've ever seen.

Pokun

  • Full Member
  • ***
  • Posts: 153
Re: Getting started programming?
« Reply #61 on: February 22, 2017, 05:22:11 AM »
Yup those are great additions. I saw those in the thread. The #^(label) shorthand for #BANK(label) was also added.
But no I don't think you documented it at all. PCEAS has always been plagued by a lack of documentation. lol

(The original "usage.txt" file doesn't even mention how zero page addressing is done!)

ccovell

  • Hero Member
  • *****
  • Posts: 2245
Re: Getting started programming?
« Reply #62 on: December 14, 2017, 05:28:58 PM »
A little bump since I've added episode 5 to my tutorial videos:

http://www.chrismcovell.com/PCEdev/