[Sdcc-user] Supporting an odd ABI for a kernel that wasn't designed for C

2014-07-29 Thread Drew DeVault
Hi there! I am Drew DeVault, the primary maintainer of KnightOS: https://github.com/KnightOS/kernel It's a z80 operating system that runs on TI calculators. Currently, both the kernel and userspace are written entirely in assembly. We would like to provide support for C in userspace fo

Re: [Sdcc-user] Supporting an odd ABI for a kernel that wasn't designed for C

2014-08-07 Thread Drew DeVault
On 08/06/2014 01:27 AM, Philipp Klaus Krause wrote: > On 30.07.2014 04:16, Drew DeVault wrote: I see two options: > > 1) sdcc rarely emits jr directly (jr is mostly generated in the > peephole optimizer), so by using a non-default peephole rule file > (see pepph-z80.def), one cou

Re: [Sdcc-user] Supporting an odd ABI for a kernel that wasn't designed for C

2014-08-07 Thread Drew DeVault
s, it will be very helpful for these problems. I'll consider writing the whole function in asm, but I'm not sure that'll solve the problems with destroying registers. -- Drew DeVault -- Want fast and easy ac

[Sdcc-user] An update on KnightOS

2014-09-21 Thread Drew DeVault
c You are of course welcome to take anything you wish from our fork, and we'd be happy if any SDCC users wanted to come join us in making it better. -- Drew DeVault -- Slashdot TV. Video for Nerds. Stuff that Matt

Re: [Sdcc-user] An update on KnightOS

2014-09-23 Thread Drew DeVault
On 09/23/2014 02:16 PM, Philipp Klaus Krause wrote: > On 22.09.2014 01:37, Drew DeVault wrote: >> Hi there! I wanted to let you guys know what us KnightOS folks >> ended up doing with SDCC. You might remember my email a few >> months ago asking about some of our concerns.

Re: [Sdcc-user] support for zasm z80 assembler

2014-11-14 Thread Drew DeVault
dcc output for z80. https://github.com/KnightOS/scas/ The docs for AS assembly syntax can be found here, this is what we referenced: http://svn.code.sf.net/p/sdcc/code/trunk/sdcc/sdas/doc/asmlnk.txt -- Drew DeVault