Jacob Young

Results 73 comments of Jacob Young

Alright, I finally got caught up with unfixed bugs and pushed, so the sext opt I wrote a few weeks ago should solve your `__bshrs` issue. Note that, naturally, it...

Well they all contain disjoint routines, so it's not really a choice between one or the other. The purpose of compiler-rt is to provide compiler-specific builtins that compute operations that...

The source for all of the zds routines are in the previous zilog toolchain release at `src/rtl/common` but they are written for the ez80 so won't be very useful, certainly...

Then you are using a `stdint.h` that isn't valid for the z80. The one from glibc definitely won't work. The one packaged with [clang](https://github.com/jacobly0/llvm-project/blob/z80/clang/lib/Headers/stdint.h) would work if you don't have...

That's a surprisingly tough one, let me give it a shot... ```asm ; speed optimized __lcmpu: or a sbc hl,bc add hl,bc push de push bc push iy pop bc...

```asm __setflag: ret po push af dec sp pop af xor $80 push af inc sp pop af ret ```

```asm ; speed optimized __lcmpzero: push bc ld c,a ld a,l or h or e or d jr z,.zero ld a,d or 1 .zero: cp 0 ld a,c pop bc...

All of the shifts follow the same pattern, so I'll do them all at once: ```asm __bshl: inc b dec b ret z push bc .loop: add a,a djnz .loop...

Can't merge changes to the asm output without a way to select between asm flavors.

I'm referring to [this](https://github.com/jacobly0/llvm-project/pull/10/commits/e1c4140e0c9f1e152fc62882962fb40d50679e01#diff-fd517455ba87c10d197b59f93629b02d89559e3db68d53608f14cd010fda4cacL43), file-local labels that are unmarked or that start with dot are not supported by the assembler/linker I'm using. Interestingly, my assembler/linker does support outputting ELF files...