Skip to content

specified Carry-out for __*shift_1 routines and Sign-out for __llshl_1#763

Open
ZERICO2005 wants to merge 1 commit intomasterfrom
shift_1_doc
Open

specified Carry-out for __*shift_1 routines and Sign-out for __llshl_1#763
ZERICO2005 wants to merge 1 commit intomasterfrom
shift_1_doc

Conversation

@ZERICO2005
Copy link
Contributor

Added documentation to the __*shift_1 routines:

  • size and clock-cycles
  • input and output parameters
  • Specified that the __*shift_1 functions set the Carry flag to the shifted out bit.

I also specified the sign out for the __*shl_1 functions, since every reasonable implementation would output the sign and carry flag anyways. Including a hypothetical __i72shl_1 function:

__i72shl_1:
	add	hl, hl
	ex	de, hl
	adc	hl, hl
	ex	de, hl
	push	bc
	ex	(sp), hl
	adc	hl, hl
	ex	(sp), hl
	pop	bc
	ret

@ZERICO2005 ZERICO2005 added the crt label Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant