Re: [fpc-devel] ROL/ROR with Carry

2021-01-12 Thread Sven Barth via fpc-devel
Am 11.01.2021 um 19:53 schrieb Karoly Balogh via fpc-devel: Hi, On Mon, 11 Jan 2021, Sven Barth via fpc-devel wrote: So the idea is to add support for ROL/ROR with Carry support as the current Rol*/Ror* functions don't support that. Florian then said that he's open to suggestions under some re

Re: [fpc-devel] ROL/ROR with Carry

2021-01-11 Thread Florian Klämpfl via fpc-devel
Am 11.01.21 um 19:10 schrieb Sven Barth via fpc-devel: Hello together! Considering that jamie philbrook has given up on his feature request ( https://bugs.freepascal.org/view.php?id=38341 ) rather quickly and that it had been my idea for him to open that bug report I'd like to discuss this he

Re: [fpc-devel] ROL/ROR with Carry

2021-01-11 Thread J. Gareth Moreton via fpc-devel
I do agree that populating the carry bit is not that straightforward, especially on processors that don't have an explicit carry. An alternative approach is to go for something similar to the SHRD instruction, that pulls in bits from another register rather than the carry bit - https://www.fel

Re: [fpc-devel] ROL/ROR with Carry

2021-01-11 Thread Karoly Balogh via fpc-devel
Hi, On Mon, 11 Jan 2021, Sven Barth via fpc-devel wrote: > So the idea is to add support for ROL/ROR with Carry support as the > current Rol*/Ror* functions don't support that. Florian then said that > he's open to suggestions under some restrictions. Considering that the > current Rol*/Ror* intr

[fpc-devel] ROL/ROR with Carry

2021-01-11 Thread Sven Barth via fpc-devel
Hello together! Considering that jamie philbrook has given up on his feature request ( https://bugs.freepascal.org/view.php?id=38341 ) rather quickly and that it had been my idea for him to open that bug report I'd like to discuss this here. So the idea is to add support for ROL/ROR with Car