cc65-floatlib icon indicating copy to clipboard operation
cc65-floatlib copied to clipboard

C128 port?

Open xlar54 opened this issue 3 years ago • 5 comments

Would love to see a 128 port of this. Any pointers on how to develop a port?

xlar54 avatar Jan 26 '22 13:01 xlar54

I wouldnt be surprised if it just worked with minimal modifications - you'll only have to find the matching kernal and basic routines (my guess is most are the same) and adjust the code like the vic20 port does. And perhaps add some banking stuff into the wrappers.

mrdudz avatar Jan 26 '22 14:01 mrdudz

I started messing around with it a couple of years ago, c128 branch. Just came back to thinking about it this week and want to get it done.

stringsn88keys avatar Aug 05 '23 14:08 stringsn88keys

Fell free to make a PR once it is ready :)

mrdudz avatar Aug 05 '23 15:08 mrdudz

A C128 port will be tricky because the float routines in its BASIC are designed to work with the RAM bank where BASIC variables are stored - bank 1. So if your C program's float values are in bank 0, you'll have to copy them into bank 1 somewhere before the float routines will be able to see them.

markjreed avatar Aug 05 '23 22:08 markjreed

@markjreed That's helpful to know prior to tearing my hair out with code that seems like it should 100% work.

stringsn88keys avatar Aug 07 '23 14:08 stringsn88keys