6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 4:14 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Jan 31, 2004 4:41 am 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 460
Location: Canada
How hard would it be to mod EhBasic to use long addressing for Peek/poke for 65816 system ? What has to be done ?

Look to me like the temporary int just needs to be extended by a byte. Is this already calculated correctly by the float to fixed code - in FAC_1 ?

It'd be nice if 24 bit ints were supported for the 816.

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Sat Jan 31, 2004 5:41 pm 
Offline

Joined: Fri Aug 30, 2002 2:05 pm
Posts: 347
Location: UK
Rob Finch wrote:
How hard would it be to mod EhBasic to use long addressing for Peek/poke for 65816 system ?

Thanks


From a quick look at the code to refresh my memory it does look like it just needs the temporary integer changing to three bytes. Of course there are probably some gotchas that aren't immediately aparent but it's worth a go.

As far as I can see the commands/functions that would be affected by this are ..

POKE DOKE
PEEK DEEK
WAIT
BITSET BITCLR BITTST()
CALL

Another thing to look at would be allocating another byte for the USR() vector.

Anyone want to donate a 65816 and I'll have a go at this myself. 8^)=

Cheers,
Lee.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 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: