[cc65] bitwise not broken in ca65?

From: Simon Scott <scotty1amnet.net.au>
Date: 2011-12-24 12:51:21
Hi all, long time user, first time poster :)

Just trying to compile opencbm, which uses ca65 I believe in order to
compile some 6502 bits. Unfortunately Ive come a bit unstuck.

Firstly, let me specify that I compiled cc65 etc from a git clone
yesterday.

When I try to build opencbm, it throws an error:

tdchange.a65(151): Error: Range error (-9 not in [0..255])
tdchange.a65(169): Error: Range error (-5 not in [0..255])


Those 2 lines are:

and #~drDriveLED

AND

and #~drDriveMotor



in common.i65:

drDriveLED      = $08                   ;Drive LED control

AND

drDriveMotor    = $04                   ;Drive motor control


so, it looks like ca65 is resolving ~$08 as -9, and ~$04 and -5 (ie, 2's
complement) rather than an actual bitwise NOT.

Thoughts?

thanks




----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Dec 24 13:19:51 2011

This archive was generated by hypermail 2.1.8 : 2011-12-24 13:19:56 CET