It is currently Mon Oct 20, 2014 4:38 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: 65c02 instructions
PostPosted: Wed Feb 15, 2012 2:12 am 
Offline
 Profile

Joined: Thu Nov 06, 2008 1:13 am
Posts: 14
Is there anything I need to do to enable assembly of 65c02 instructions like phx / plx ?

With BeebAsm for Windows 1.08 (from the zip on the front page), I get errors trying to assemble the following code :
Code:
        phx
        plx
        rts


beebasm -i test.asm
test.asm:1: error: Unrecognised token.

phx
^

Cheers.

Phill.


Top
 
 Post subject: Re: 65c02 instructions
PostPosted: Wed Feb 15, 2012 10:09 am 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 6:46 pm
Posts: 380
Location: Málaga, Spain
Yes: put the directive
Code:
CPU 1
at the top of your code.


Top
 
 Post subject: Re: 65c02 instructions
PostPosted: Wed Feb 15, 2012 10:20 am 
Offline
 Profile

Joined: Thu Nov 06, 2008 1:13 am
Posts: 14
RichTW wrote:
Yes: put the directive
Code:
CPU 1
at the top of your code.


Thanks Rich, just found that by looking in the source....and then noticed it's actually documented on the BeebAsm webpage :)

Serves me right for trying to port code at 1.30 in the morning.......

Cheers.

Phill.


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron