6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Apr 27, 2024 10:52 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jan 12, 2024 3:57 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8144
Location: Midwestern USA
W65C816S String Manipulation Library V3

I recently went through my 65C816 string manipulation library from top to bottom and made substantial revisions.  The extensively-commented source code, macros and a README detailing how the library works may be downloaded in ZIP format at http://sbc.steggy.net/files/code/stringlib.zip.  The library will assemble in the Kowalski assembler, as modified by Daryl Rictor (8Bit) to recognize the 65C816 instruction set.  An .opt proc65816,swapbin statement is required at the start of the main source file in order to successfully assemble the library.  The resulting object code is fully relocatable and will run in any bank.

The main improvement in version 3 is its code is completely bank-agnostic, thus treating memory as linear space.  Strings may be anywhere in the 65C816’s 16 MB address and may span bank boundaries, which wasn’t possible in version 2.  Code was tightened to improve execution speed and the macros (which are in a separate source file) have been enhanced to support direct-page, near and far parameter addressing.  As before, parameter passing is through the stack and internal workspace is also on the stack, making the library quite transparent to callers.

The README file in the ZIP explains all.

——————————
EDIT: FIxed a typo.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Last edited by BigDumbDinosaur on Fri Jan 12, 2024 6:15 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Fri Jan 12, 2024 8:49 am 
Offline
User avatar

Joined: Mon Aug 30, 2021 11:52 am
Posts: 251
Location: South Africa
Awesome thanks! That's exactly what I needed. Not just because I need a string library but also because I need examples of well written / well structured '816 assembly.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jan 12, 2024 6:17 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8144
Location: Midwestern USA
AndrewP wrote:
Awesome thanks!

You’re welcome.

Quote:
That's exactly what I needed.  Not just because I need a string library but also because I need examples of well written / well structured '816 assembly.

Dunno about the “well written / well structured” part...  :D

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 28 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: