Neat! I have added a handy feature to pas2c64 - allowing pure 6502 assembly code procedure that I can call from the rest of the program!

This is great for testing and extending pas2c64 without even adding new features and recompiling

Here is an example:
Code:
procedure UpperCase; assembler;
asm
  lda $d018
  and #253
  sta $d018
end;

procedure LowerCase; assembler;
asm
  lda $d018
  ora #2
  sta $d018
end;

begin
  LowerCase;
  UpperCase;
end.
cheers,
Paul